Skip to content

Commit cf436fb

Browse files
committed
fix ci
Signed-off-by: karthik2804 <[email protected]>
1 parent 5e80d09 commit cf436fb

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

.github/workflows/test.yaml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,33 @@ on:
77
branches: [ main ]
88
workflow_dispatch:
99

10+
env:
11+
RUST_VERSION: 1.84
12+
1013
jobs:
1114
lint_and_test:
1215
runs-on: ubuntu-latest
1316

1417
steps:
1518
- uses: actions/checkout@v3
1619

17-
- name: Use Node.js 20
20+
- name: Install Rust toolchain
21+
shell: bash
22+
run: |
23+
rustup toolchain install ${{ env.RUST_VERSION }} --no-self-update
24+
rustup default ${{ env.RUST_VERSION }}
25+
26+
- name: "Install Wasm Rust target"
27+
run: rustup target add wasm32-wasip1 wasm32-unknown-unknown --toolchain ${{ env.RUST_VERSION }}
28+
29+
- name: Use Node.js 22
1830
uses: actions/setup-node@v3
1931
with:
20-
node-version: 20
32+
node-version: 22
2133

2234
- name: Install depencies
2335
shell: bash
24-
run: npm install
36+
run: npm install --ws
2537

2638
- name: Run prettier check
2739
shell: bash

0 commit comments

Comments
 (0)