ci: split out checks into one job per check #321
1 changed files with 19 additions and 3 deletions
|
@ -8,16 +8,32 @@ jobs:
|
||||||
- name: Build Package
|
- name: Build Package
|
||||||
run: |
|
run: |
|
||||||
nix build --print-build-logs .#
|
nix build --print-build-logs .#
|
||||||
check-integration-tests:
|
checks:
|
||||||
needs: build # we use the built binaries in the checks
|
needs: build # we use the built binaries in the checks
|
||||||
runs-on: nixos
|
runs-on: nixos
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
system:
|
||||||
|
- x86_64-linux
|
||||||
|
test:
|
||||||
|
- treefmt
|
||||||
|
- clippy
|
||||||
|
- nextest
|
||||||
|
- module-ipv4-only-test
|
||||||
|
- module-ipv4-test
|
||||||
|
- module-ipv6-only-test
|
||||||
|
- module-ipv6-test
|
||||||
|
- module-nginx-test
|
||||||
|
env:
|
||||||
|
TEST: ${{ matrix.test }}
|
||||||
|
SYSTEM: ${{ matrix.system }}
|
||||||
steps:
|
steps:
|
||||||
- uses: https://git.salame.cl/actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
|
- uses: https://git.salame.cl/actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
|
||||||
- run: nix --version
|
- run: nix --version
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: |
|
run: |
|
||||||
nix-fast-build --max-jobs 2 --no-nom --skip-cached --no-link \
|
nix build --print-build-logs \
|
||||||
--flake ".#checks.$(nix eval --raw --impure --expr builtins.currentSystem)"
|
.#checks."$SYSTEM"."$TEST"
|
||||||
report-size:
|
report-size:
|
||||||
runs-on: nixos
|
runs-on: nixos
|
||||||
needs: build
|
needs: build
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue