feat(ci): check depends on build
All checks were successful
/ build (push) Successful in 2s
/ check (push) Successful in 7s

Because it depends on build, if build runs afterward, nix uses the cache
and no valuable logs are produced.
This commit is contained in:
Jalil David Salamé Messina 2024-11-23 13:00:57 +01:00
parent 68cf43c539
commit d98c4202f4
Signed by: jalil
GPG key ID: F016B9E770737A0B

View file

@ -1,14 +1,15 @@
on: [push] on: [push]
jobs: 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: build:
runs-on: nixos runs-on: nixos
steps: steps:
- uses: https://git.salame.cl/actions/checkout@v4 - uses: https://git.salame.cl/actions/checkout@v4
- run: nix --version - run: nix --version
- run: nix build --print-build-logs .# - 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