Skip to content

Commit 50c1630

Browse files
authored
Merge pull request #4 from function-artisans/devenv-ci
2 parents fc1b3e3 + ff44809 commit 50c1630

1 file changed

Lines changed: 14 additions & 11 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,24 @@ jobs:
1313
steps:
1414
- uses: actions/checkout@v5
1515

16-
# The action reads the pnpm version from the packageManager field in package.json.
17-
- name: Install pnpm
18-
uses: pnpm/action-setup@v6
16+
- name: Install Nix
17+
uses: cachix/install-nix-action@v31
1918

20-
- name: Use Node.js
21-
uses: actions/setup-node@v4
19+
# The devenv cache has prebuilt packages, so the dev shell builds faster.
20+
- name: Use the devenv cache
21+
uses: cachix/cachix-action@v17
2222
with:
23-
node-version: "22"
24-
cache: "pnpm"
23+
name: devenv
2524

25+
- name: Install devenv
26+
run: nix profile add nixpkgs#devenv
27+
28+
# The eslint, tsc and prettier hooks use the tools from node_modules.
2629
- name: Install dependencies
27-
run: pnpm install --frozen-lockfile
30+
run: devenv shell -- pnpm install --frozen-lockfile
2831

29-
- name: Run lint
30-
run: pnpm run lint
32+
- name: Run the git hooks
33+
run: devenv test
3134

3235
- name: Run build
33-
run: pnpm run build
36+
run: devenv shell -- pnpm run build

0 commit comments

Comments
 (0)