Skip to content

Commit 38078e9

Browse files
committed
ci: split build-and-test into separate build and test jobs
Separate the combined build-and-test job into distinct jobs: - build: Uses nix build for reproducible package generation - test: Runs pnpm test in nix develop shell This allows build and test to run in parallel and makes it clearer which step failed when issues occur.
1 parent 8b443b3 commit 38078e9

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

.github/workflows/ci.yaml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
- name: Run Lint
3939
run: nix develop --command pnpm run lint
4040

41-
build-and-test:
41+
build:
4242
runs-on: ubuntu-latest
4343
steps:
4444
- name: Checkout repository
@@ -47,8 +47,17 @@ jobs:
4747
- name: Setup Nix
4848
uses: ./.github/actions/setup-nix
4949

50-
- name: Run Build
51-
run: nix develop --command pnpm run build
50+
- name: Build package
51+
run: nix build
52+
53+
test:
54+
runs-on: ubuntu-latest
55+
steps:
56+
- name: Checkout repository
57+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
58+
59+
- name: Setup Nix
60+
uses: ./.github/actions/setup-nix
5261

5362
- name: Run Tests
5463
run: nix develop --command pnpm test

0 commit comments

Comments
 (0)