-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (35 loc) · 873 Bytes
/
Copy pathtests.yml
File metadata and controls
38 lines (35 loc) · 873 Bytes
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
name: Tests
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
- run: npm ci
- run: npm test
- run: npm run typecheck
- run: npm run lint
- run: npm run format:check
- run: npm run check:icons
wasm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: 1.94.0
targets: wasm32-unknown-unknown
- uses: Swatinem/rust-cache@v2
with:
workspaces: wasm
- run: cargo install wasm-pack --version 0.15.0 --locked
- run: npm run build:wasm
- run: git diff --exit-code -- pkg wasm/Cargo.lock