Skip to content

Commit 9039f59

Browse files
committed
Updating GitHub Actions for bun
1 parent 9a7a0e2 commit 9039f59

File tree

1 file changed

+28
-19
lines changed

1 file changed

+28
-19
lines changed

.github/workflows/ts.yml

Lines changed: 28 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -21,53 +21,62 @@ jobs:
2121
lint:
2222
runs-on: ubuntu-latest
2323
steps:
24+
- uses: oven-sh/setup-bun@v2
25+
with:
26+
bun-version: latest
2427
- uses: actions/checkout@v2
25-
- name: Use Node.js 14.x
26-
uses: actions/setup-node@v2
28+
- name: Use Node.js 20.x
29+
uses: actions/setup-node@v4
2730
with:
28-
node-version: 14.x
31+
node-version: 20.x
2932
- name: "install dependencies"
30-
run: yarn install
33+
run: bun install
3134
- name: "run lint"
32-
run: "yarn lint"
35+
run: "bun run lint"
3336
test:
3437
runs-on: ubuntu-latest
3538
steps:
39+
- uses: oven-sh/setup-bun@v2
40+
with:
41+
bun-version: latest
3642
- uses: actions/checkout@v2
37-
- name: Use Node.js 14.x
38-
uses: actions/setup-node@v2
43+
- name: Use Node.js 20.x
44+
uses: actions/setup-node@v4
3945
with:
40-
node-version: 14.x
46+
node-version: 20.x
4147
- name: "install dependencies"
42-
run: yarn install
48+
run: bun install
4349
- name: "run build"
44-
run: "yarn build"
50+
run: "bun run build"
4551
- name: "run test"
46-
run: "yarn test"
52+
run: "bun run test"
4753
stale-api-schema:
4854
name: Generated API schema matches source interfaces
4955
runs-on: ubuntu-latest
5056
steps:
57+
- uses: oven-sh/setup-bun@v2
58+
with:
59+
bun-version: latest
5160
- uses: actions/checkout@v2
52-
- name: Use Node.js 14.x
53-
uses: actions/setup-node@v2
61+
- name: Use Node.js 20.x
62+
uses: actions/setup-node@v4
5463
with:
55-
node-version: 14.x
64+
node-version: 20.x
5665
- name: "install dependencies"
57-
run: yarn install
66+
run: bun install
5867
- name: "run build"
59-
run: "yarn build"
68+
run: "bun run build"
6069
- name: "run generateSchema for the API"
6170
working-directory: packages/api
62-
run: "yarn generateSchema"
71+
run: "bun run generateSchema"
6372
- name: "check if changes are pending"
6473
run: "git diff --exit-code"
6574
- name: "run generateSchema for the events validator"
6675
working-directory: packages/store-shared
67-
run: "yarn generateSchema"
76+
run: "bun run generateSchema"
6877
- name: "run generateSchema for the ingester validator"
6978
working-directory: packages/ingester
70-
run: "yarn generateSchema"
79+
run: "bun run generateSchema"
7180
- name: "check if changes are pending"
7281
run: "git diff --exit-code"
7382
working-directory: packages

0 commit comments

Comments
 (0)