Skip to content

Commit 20de494

Browse files
committed
ci(github-actions): refactor nix-flake-test to use matrix strategy
replace separate test/build/quality steps with a matrix job that runs these checks in parallel, simplifying workflow and improving ci performance. removes duplicated code and enables fail-fast control.
1 parent a3116c9 commit 20de494

1 file changed

Lines changed: 6 additions & 8 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,10 @@ jobs:
6969
uses: actions/dependency-review-action@v4
7070

7171
nix-flake-test:
72+
strategy:
73+
fail-fast: false
74+
matrix:
75+
quality: [bun run quality, bun test, bun run test:e2e]
7276
name: Nix Flake CI
7377
runs-on: ubuntu-latest
7478
steps:
@@ -79,14 +83,8 @@ jobs:
7983
- name: Install dependencies (Nix devShell)
8084
run: nix --experimental-features 'nix-command flakes' develop .# --command -- bun install
8185

82-
- name: Quality checks (Nix devShell)
83-
run: nix --experimental-features 'nix-command flakes' develop .# --command -- bun run quality
84-
8586
- name: Build (Nix devShell)
8687
run: nix --experimental-features 'nix-command flakes' develop .# --command -- bun run build
8788

88-
- name: Run unit tests (Nix devShell)
89-
run: nix --experimental-features 'nix-command flakes' develop .# --command -- bun test
90-
91-
- name: Run E2E tests (Nix devShell)
92-
run: nix --experimental-features 'nix-command flakes' develop .# --command -- bun run test:e2e
89+
- name: Quality checks (Nix devShell)
90+
run: nix --experimental-features 'nix-command flakes' develop .# --command -- ${{matrix.quality}}

0 commit comments

Comments
 (0)