Skip to content

Commit 6c816f4

Browse files
committed
perf: replace Nix with setup-deno and setup-node in CI
Nix shell startup overhead was causing slow CI builds. Use dedicated setup actions for Deno and Node (for Pagefind).
1 parent c9e66f2 commit 6c816f4

1 file changed

Lines changed: 12 additions & 10 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,20 +24,22 @@ jobs:
2424
steps:
2525
- uses: actions/checkout@v4
2626

27-
- uses: DeterminateSystems/nix-installer-action@main
27+
- uses: denoland/setup-deno@v2
28+
with:
29+
deno-version: v2.x
2830

29-
- uses: DeterminateSystems/magic-nix-cache-action@main
31+
- uses: actions/setup-node@v4
32+
with:
33+
node-version: lts/*
3034

31-
# Lint and type check
32-
- run: nix develop --command deno fmt --check
33-
- run: nix develop --command deno lint
34-
- run: nix develop --command deno task check
35+
- run: npm install -g pagefind
3536

36-
# Run tests
37-
- run: nix develop --command deno task test
37+
- run: deno fmt --check
38+
- run: deno lint
39+
- run: deno task check
40+
- run: deno task test
3841

39-
# Build static site (BASE_PATH for GitHub Pages subdirectory)
40-
- run: nix develop --command deno task build
42+
- run: deno task build
4143
env:
4244
BASE_PATH: /documents
4345

0 commit comments

Comments
 (0)