ci: make lint steps non-gating (step-level continue-on-error)
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:
@@ -28,15 +28,20 @@ jobs:
|
||||
|
||||
lint:
|
||||
runs-on: ubuntu-latest
|
||||
continue-on-error: true
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- 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)
|
||||
continue-on-error: true
|
||||
run: |
|
||||
fd_nix=$(find . -name '*.nix')
|
||||
nix run nixpkgs#nixfmt -- --check $fd_nix
|
||||
- name: statix
|
||||
continue-on-error: true
|
||||
run: nix run nixpkgs#statix -- check
|
||||
- name: deadnix
|
||||
continue-on-error: true
|
||||
run: nix run nixpkgs#deadnix -- --fail
|
||||
|
||||
Reference in New Issue
Block a user