-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (31 loc) · 874 Bytes
/
builder.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Build and test
on:
push:
branches: [main]
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Rust stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
target: wasm32-unknown-unknown
override: true
components: rustfmt, clippy
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: '22'
- name: Install wasm-pack
run: cargo install wasm-pack
- name: Build and test (native)
run: cargo test
- name: Build and test (wasm)
run: wasm-pack test --node
- name: Run cargo fmt
run: cargo fmt -- --check
- name: Run cargo clippy
run: cargo clippy --all-targets -- -D warnings