mirror of
https://github.com/juanfont/headscale.git
synced 2026-07-17 05:20:43 +09:00
ci: run nix jobs with --fallback
cache.nixos.org intermittently serves corrupt NARs; build from source on substitute failure instead of failing the job.
This commit is contained in:
@@ -35,7 +35,7 @@ jobs:
|
||||
|
||||
- name: golangci-lint
|
||||
if: steps.changed-files.outputs.files == 'true'
|
||||
run: nix develop --command -- golangci-lint run
|
||||
run: nix develop --fallback --command -- golangci-lint run
|
||||
--new-from-rev=${{github.event.pull_request.base.sha}}
|
||||
--output.text.path=stdout
|
||||
--output.text.print-linter-name
|
||||
@@ -75,7 +75,7 @@ jobs:
|
||||
|
||||
- name: Prettify code
|
||||
if: steps.changed-files.outputs.files == 'true'
|
||||
run: nix develop --command -- prettier --no-error-on-unmatched-pattern
|
||||
run: nix develop --fallback --command -- prettier --no-error-on-unmatched-pattern
|
||||
--ignore-unknown --check **/*.{ts,js,md,yaml,yml,sass,css,scss,html}
|
||||
|
||||
proto-lint:
|
||||
@@ -90,4 +90,4 @@ jobs:
|
||||
restore-prefixes-first-match: nix-${{ runner.os }}-${{ runner.arch }}
|
||||
|
||||
- name: Buf lint
|
||||
run: nix develop --command -- buf lint proto
|
||||
run: nix develop --fallback --command -- buf lint proto
|
||||
|
||||
Reference in New Issue
Block a user