@@ -36,32 +36,18 @@ jobs:
3636 ref : ${{ github.event.pull_request.head.sha || github.sha }}
3737 persist-credentials : false
3838 - uses : ./.github/actions/setup-nix-cache
39- # `nix flake check` and the Rust test build (`nix build .#ccusage-tests`)
40- # only need the checkout and Nix — neither touches the JS toolchain — so
41- # start both as background steps right away. They run concurrently while
42- # the JS-only setup (toolchain install + pnpm install) happens below, and
43- # the Node tests join them afterwards via `wait-all`.
44- # https://github.blog/changelog/2026-06-25-actions-steps-can-now-be-run-in-parallel/
45- - name : Run nix flake check
46- background : true
47- run : nix flake check --print-build-logs
48- - name : Run Rust tests
49- background : true
50- run : nix build .#ccusage-tests --print-build-logs
51- # Node tests need the JS toolchain. Install just pnpm/node/just instead of
52- # realizing the full dev shell, which drags in every linter, formatter, and
53- # the pre-commit hook closure and dominated this job's wall time.
54- - name : Install JS tooling
55- run : nix profile install --inputs-from . nixpkgs#pnpm nixpkgs#nodejs nixpkgs#just
56- - run : pnpm install --frozen-lockfile
57- - name : Create default Claude directories for tests
58- run : |
59- mkdir -p "$HOME/.claude/projects"
60- mkdir -p "$HOME/.config/claude/projects"
61- - name : Run Node tests
62- background : true
63- run : just test-node
64- - wait-all :
39+ - parallel :
40+ - name : Run nix flake check
41+ run : nix flake check --print-build-logs
42+ - name : Run Rust tests
43+ run : nix build .#ccusage-tests --print-build-logs
44+ - name : JS test
45+ run : |
46+ nix profile install --inputs-from . nixpkgs#pnpm nixpkgs#nodejs nixpkgs#just
47+ pnpm install --frozen-lockfile
48+ mkdir -p "$HOME/.claude/projects"
49+ mkdir -p "$HOME/.config/claude/projects"
50+ just test-node
6551
6652 build-native-packages :
6753 needs : changes
0 commit comments