Skip to content

Commit 7d530e9

Browse files
committed
chore(build): Migrate Github Actions to Bun
1 parent c9fa15f commit 7d530e9

File tree

4 files changed

+17
-18
lines changed

4 files changed

+17
-18
lines changed

.bun-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
1.3.1

.github/workflows/develop-workflow.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,14 @@ jobs:
1919
uses: actions/checkout@v5
2020
with:
2121
fetch-depth: 0
22-
- name: Setup Node.js
23-
uses: actions/setup-node@v4
24-
with:
25-
node-version: '22.x'
26-
cache: 'yarn'
22+
- name: Setup Bun package manager
23+
uses: oven-sh/setup-bun@v2
24+
with:
25+
bun-version-file: ".bun-version"
2726
- name: Install dependencies
28-
run: yarn install --frozen-lockfile
27+
run: bun install --frozen-lockfile
2928
- name: Run tests with coverage
30-
run: yarn test:coverage
29+
run: bun test:coverage
3130
- name: Upload coverage to Codecov
3231
uses: codecov/codecov-action@v5
3332
with:

.github/workflows/main-workflow.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,14 @@ jobs:
1717
uses: actions/checkout@v5
1818
with:
1919
fetch-depth: 0
20-
- name: Setup Node.js
21-
uses: actions/setup-node@v4
22-
with:
23-
node-version: '22.x'
24-
cache: 'yarn'
25-
- name: Install dependencies
26-
run: yarn install --frozen-lockfile
20+
- name: Setup Bun package manager
21+
uses: oven-sh/setup-bun@v2
22+
with:
23+
bun-version-file: ".bun-version"
24+
- name: Install production dependencies
25+
run: bun install --production --frozen-lockfile
2726
- name: Run tests with coverage
28-
run: yarn test:coverage
27+
run: bun test:coverage
2928
- name: Upload coverage to Codecov
3029
uses: codecov/codecov-action@v5
3130
with:

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
},
1515
"homepage": "https://binger.uk",
1616
"scripts": {
17+
"deploy": "bun db:migrate && bun start",
1718
"start": "npx tsx api/index.ts",
1819
"start:dev": "npx tsx api/index.ts --enable-source-maps --watch",
1920
"lint": "bun lint:ts && bun lint:ejs",
@@ -26,9 +27,8 @@
2627
"publish:patch": "npx grunt",
2728
"publish:minor": "npx grunt minor",
2829
"publish:major": "npx grunt major",
29-
"deploy": "bun db:migrate && bun start",
30-
"test": "jest",
31-
"test:coverage": "jest --coverage --reporters=jest-junit"
30+
"test": "npx jest",
31+
"test:coverage": "npx jest --coverage --reporters=jest-junit"
3232
},
3333
"dependencies": {
3434
"@vercel/analytics": "^1.5.0",

0 commit comments

Comments
 (0)