From 35f5fe4fc33b96320ad1413a7069422f4352f355 Mon Sep 17 00:00:00 2001 From: Sirz Benjie <142067137+SirzBenjie@users.noreply.github.com> Date: Tue, 2 Sep 2025 13:37:56 -0500 Subject: [PATCH] Add reuse lint workflow --- .github/workflows/linting.yml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/.github/workflows/linting.yml b/.github/workflows/linting.yml index e1314c2cbd3..41fac02eb9d 100644 --- a/.github/workflows/linting.yml +++ b/.github/workflows/linting.yml @@ -63,6 +63,16 @@ jobs: run: pnpm typecheck:scripts id: typecheck-scripts continue-on-error: true + + + # NOTE: This step *must* run last, as it deletes files in `public/` + # Files in public/ do not yet have full licensing information, so remove them before checking for reuse compliance + - name: Prepare for reuse compliance + run: rm -rf public/* + - name: Check for reuse compliance + uses: fsfe/reuse-action@v5 + id: reuse + continue-on-error: true - name: Evaluate for Errors env: @@ -70,6 +80,7 @@ jobs: DEPCRUISE_OUTCOME: ${{ steps.depcruise.outcome }} TYPECHECK_OUTCOME: ${{ steps.typecheck.outcome }} TYPECHECK_SCRIPTS_OUTCOME: ${{ steps.typecheck-scripts.outcome }} + REUSE_LINT_OUTCOME: ${{ steps.reuse.outcome }} run: | # Check for Errors @@ -97,13 +108,17 @@ jobs: print_result "Depcruise" "$DEPCRUISE_OUTCOME" print_result "Typecheck" "$TYPECHECK_OUTCOME" print_result "Typecheck scripts" "$TYPECHECK_SCRIPTS_OUTCOME" + print_result "Reuse Compliance" "$REUSE_LINT_OUTCOME" if [[ "$BIOME_LINT_OUTCOME" != "success" || \ "$DEPCRUISE_OUTCOME" != "success" || \ "$TYPECHECK_OUTCOME" != "success" || \ - "$TYPECHECK_SCRIPTS_OUTCOME" != "success" ]]; then + "$TYPECHECK_SCRIPTS_OUTCOME" != "success" || \ + "$REUSE_LINT_OUTCOME" != "success" ]]; then printf "$(red "❌ One or more checks failed!")\n" >&2 exit 1 fi printf "$(green "✅ All checks passed!")\n" + + \ No newline at end of file