From d98c4202f42b304112073be94242f3abaf9e69b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jalil=20David=20Salam=C3=A9=20Messina?= Date: Sat, 23 Nov 2024 13:00:57 +0100 Subject: [PATCH] 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. --- .forgejo/workflows/check.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.forgejo/workflows/check.yml b/.forgejo/workflows/check.yml index ab33bfa..2912a0c 100644 --- a/.forgejo/workflows/check.yml +++ b/.forgejo/workflows/check.yml @@ -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 -- 2.47.0