feat(ci): check depends on build
Because it depends on build, if build runs afterward, nix uses the cache and no valuable logs are produced.
This commit is contained in:
parent
68cf43c539
commit
d98c4202f4
1 changed files with 7 additions and 6 deletions
|
@ -1,14 +1,15 @@
|
|||
on: [push]
|
||||
jobs:
|
||||
check:
|
||||
runs-on: nixos
|
||||
steps:
|
||||
- uses: https://git.salame.cl/actions/checkout@v4
|
||||
- run: nix --version
|
||||
- run: nix flake check --keep-going --verbose --print-build-logs
|
||||
build:
|
||||
runs-on: nixos
|
||||
steps:
|
||||
- uses: https://git.salame.cl/actions/checkout@v4
|
||||
- run: nix --version
|
||||
- run: nix build --print-build-logs .#
|
||||
check:
|
||||
needs: build # we use the built binaries in the checks
|
||||
runs-on: nixos
|
||||
steps:
|
||||
- uses: https://git.salame.cl/actions/checkout@v4
|
||||
- run: nix --version
|
||||
- run: nix flake check --keep-going --verbose --print-build-logs
|
||||
|
|
Loading…
Reference in a new issue