ci: make lint steps non-gating (step-level continue-on-error)
CI / lint (push) Successful in 1m25s
CI / eval (push) Failing after 2m6s

Job-level continue-on-error still rendered red and skipped statix/deadnix
after nixfmt failed. Step-level lets all three run without failing the job.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
Miguel Palhas
2026-06-27 18:56:33 +01:00
parent 817c2f4f5e
commit 82205727cd
+6 -1
View File
@@ -28,15 +28,20 @@ jobs:
lint: lint:
runs-on: ubuntu-latest runs-on: ubuntu-latest
continue-on-error: true
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@main - uses: DeterminateSystems/nix-installer-action@main
# Each lint step is continue-on-error so all three always run and none
# reds the job — findings are visible in the logs but non-gating. Flip a
# step's continue-on-error to false (or drop it) to make it blocking.
- name: nixfmt (format check) - name: nixfmt (format check)
continue-on-error: true
run: | run: |
fd_nix=$(find . -name '*.nix') fd_nix=$(find . -name '*.nix')
nix run nixpkgs#nixfmt -- --check $fd_nix nix run nixpkgs#nixfmt -- --check $fd_nix
- name: statix - name: statix
continue-on-error: true
run: nix run nixpkgs#statix -- check run: nix run nixpkgs#statix -- check
- name: deadnix - name: deadnix
continue-on-error: true
run: nix run nixpkgs#deadnix -- --fail run: nix run nixpkgs#deadnix -- --fail