Skip to content

Commit 99afb60

Browse files
committed
Use Bun in GitHub workflows
1 parent 775d2bb commit 99afb60

6 files changed

Lines changed: 22 additions & 28 deletions

File tree

.github/dependabot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ updates:
1010
schedule:
1111
interval: weekly
1212

13-
- package-ecosystem: npm
13+
- package-ecosystem: bun
1414
directory: /site
1515
schedule:
1616
interval: weekly

.github/workflows/ci.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -94,25 +94,23 @@ jobs:
9494
- name: Check for committed secrets
9595
run: uv run python scripts/check_no_secrets.py
9696

97-
- name: Setup Node
98-
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e
97+
- name: Setup Bun
98+
uses: oven-sh/setup-bun@v2
9999
with:
100-
node-version: "22"
101-
cache: npm
102-
cache-dependency-path: site/package-lock.json
100+
bun-version: "1.3.11"
103101

104102
- name: Install docs dependencies
105103
working-directory: site
106-
run: npm ci
104+
run: bun install --frozen-lockfile
107105

108106
- name: Audit docs runtime dependencies
109107
working-directory: site
110-
run: npm audit --omit=dev --audit-level=moderate
108+
run: bun audit --audit-level=moderate
111109

112110
- name: Lint docs
113111
working-directory: site
114-
run: npm run lint -- --max-warnings=0
112+
run: bun run lint -- --max-warnings=0
115113

116114
- name: Build docs
117115
working-directory: site
118-
run: npm run build
116+
run: bun run build

.github/workflows/claude-code-review.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ jobs:
8484
# 'Please provide a thorough code review focusing on our coding standards and best practices.' }}
8585

8686
# Optional: Add specific tools for running tests or linting
87-
# allowed_tools: "Bash(npm run test),Bash(npm run lint),Bash(npm run typecheck)"
87+
# allowed_tools: "Bash(bun run test),Bash(bun run lint),Bash(bun run typecheck)"
8888

8989
# Optional: Skip review for certain conditions
9090
# if: |

.github/workflows/claude.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ jobs:
6666
# assignee_trigger: "claude-bot"
6767

6868
# Optional: Allow Claude to run specific commands
69-
# allowed_tools: "Bash(npm install),Bash(npm run build),Bash(npm run test:*),Bash(npm run lint:*)"
69+
# allowed_tools: "Bash(bun install),Bash(bun run build),Bash(bun run test:*),Bash(bun run lint:*)"
7070

7171
# Optional: Add custom instructions for Claude to customize its behavior for your project
7272
# custom_instructions: |

.github/workflows/deploy-docs.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,10 @@ jobs:
2424
- name: Checkout
2525
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd
2626

27-
- name: Setup Node
28-
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e
27+
- name: Setup Bun
28+
uses: oven-sh/setup-bun@v2
2929
with:
30-
node-version: '22'
31-
cache: npm
32-
cache-dependency-path: site/package-lock.json
30+
bun-version: "1.3.11"
3331

3432
- name: Setup Pages
3533
uses: actions/configure-pages@45bfe0192ca1faeb007ade9deae92b16b8254a0d
@@ -41,15 +39,15 @@ jobs:
4139

4240
- name: Install dependencies
4341
working-directory: site
44-
run: npm ci
42+
run: bun install --frozen-lockfile
4543

4644
- name: Lint docs
4745
working-directory: site
48-
run: npm run lint -- --max-warnings=0
46+
run: bun run lint -- --max-warnings=0
4947

5048
- name: Build docs
5149
working-directory: site
52-
run: npm run build
50+
run: bun run build
5351

5452
- name: Upload artifact
5553
uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9

.github/workflows/release.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,19 +48,17 @@ jobs:
4848
echo "$RUNNER_TEMP/zig" >> "$GITHUB_PATH"
4949
"$RUNNER_TEMP/zig/zig" version
5050
51-
- name: Setup Node
52-
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e
51+
- name: Setup Bun
52+
uses: oven-sh/setup-bun@v2
5353
with:
54-
node-version: "22"
55-
cache: npm
56-
cache-dependency-path: site/package-lock.json
54+
bun-version: "1.3.11"
5755

5856
- name: Install dependencies
5957
run: uv sync --locked --all-groups
6058

6159
- name: Install docs dependencies
6260
working-directory: site
63-
run: npm ci
61+
run: bun install --frozen-lockfile
6462

6563
- name: Run release gate
6664
run: ./run_all_tests.sh
@@ -74,7 +72,7 @@ jobs:
7472

7573
- name: Audit docs runtime dependencies
7674
working-directory: site
77-
run: npm audit --omit=dev --audit-level=moderate
75+
run: bun audit --audit-level=moderate
7876

7977
- name: Clean package output
8078
run: rm -rf dist
@@ -97,7 +95,7 @@ jobs:
9795

9896
- name: Build docs site
9997
working-directory: site
100-
run: npm run build
98+
run: bun run build
10199

102100
- name: Build release example artifacts
103101
run: uv run python scripts/build_examples.py --profile release --backend zig --clean

0 commit comments

Comments
 (0)