Skip to content

Commit 5d9fa30

Browse files
committed
ci: migrate CI workflows to use bun
Switch from Node.js/npm to Bun in GitHub Actions workflows for improved performance. Updated security.yml and typecheck.yml workflows to use oven-sh/setup-bun@v1, bun install, bun audit, and bun run commands.
1 parent 9fedfab commit 5d9fa30

2 files changed

Lines changed: 10 additions & 16 deletions

File tree

.github/workflows/security.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,14 @@ jobs:
1515
steps:
1616
- uses: actions/checkout@v3
1717

18-
- name: Use Node.js
19-
uses: actions/setup-node@v3
20-
with:
21-
node-version: "18"
22-
cache: "npm"
18+
- name: Setup Bun
19+
uses: oven-sh/setup-bun@v1
2320

24-
- name: Install Dependencies
25-
run: npm ci
21+
- name: Install dependencies
22+
run: bun install
2623

2724
- name: Run Security Audit
28-
run: npm audit --audit-level=high
25+
run: bun audit --audit-level=high
2926

3027
- name: Scan for Secrets
3128
uses: trufflesecurity/trufflehog@v3.90.1

.github/workflows/typecheck.yml

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

16-
- name: Use Node.js
17-
uses: actions/setup-node@v3
18-
with:
19-
node-version: "18"
20-
cache: "npm"
16+
- name: Setup Bun
17+
uses: oven-sh/setup-bun@v1
2118

22-
- name: Install Dependencies
23-
run: npm ci
19+
- name: Install dependencies
20+
run: bun install
2421

2522
- name: Run TypeScript Type Check
26-
run: npm run typecheck
23+
run: bun run typecheck

0 commit comments

Comments
 (0)