Skip to content

Commit 30e04dc

Browse files
committed
chore: update CI workflow to support multiple branches and switch to Bun for dependency management
1 parent ee0ef98 commit 30e04dc

File tree

1 file changed

+15
-9
lines changed

1 file changed

+15
-9
lines changed

.github/workflows/lint.yml

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,27 +4,33 @@ on:
44
push:
55
branches:
66
- master
7+
- main
8+
- develop
79
jobs:
810
linter:
911
runs-on: ubuntu-latest
1012
timeout-minutes: 10
1113
steps:
1214
- name: Checkout repo
13-
uses: actions/checkout@v2
15+
uses: actions/checkout@v4
1416
with:
1517
fetch-depth: 0
16-
- name: Set up Node.js
17-
uses: actions/setup-node@v3
18+
19+
- name: Setup Bun
20+
uses: oven-sh/setup-bun@v1
1821
with:
19-
node-version: '18'
20-
cache: 'yarn'
22+
bun-version: latest
23+
2124
- name: Install rust
2225
uses: dtolnay/[email protected]
23-
- uses: jetli/[email protected]
26+
27+
- name: Install wasm-pack
28+
uses: jetli/[email protected]
2429
with:
25-
# Optional version of wasm-pack to install(eg. 'v0.9.1', 'latest')
2630
version: 'latest'
31+
2732
- name: Install project dependencies
28-
run: yarn install
33+
run: bun install
34+
2935
- name: Lint
30-
run: yarn nx format:check --all
36+
run: bun run nx format:check --all

0 commit comments

Comments
 (0)