-
Notifications
You must be signed in to change notification settings - Fork 29
41 lines (37 loc) · 1 KB
/
test.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
on:
workflow_dispatch:
pull_request:
push:
branches:
- master
name: ci
jobs:
check:
name: Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/[email protected]
- run: cargo check --all --all-features --locked
test:
name: Test Suite
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: dtolnay/[email protected]
- run: cargo install wasm-pack --version 0.12.1 --locked
- run: cargo test --all --no-default-features --locked
- run: cargo test --all --all-features --locked
- run: wasm-pack test --node --all --locked
fmt:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/[email protected]
- run: rustup component add rustfmt clippy
- run: cargo fmt --all -- --check
- run: cargo clippy --all-features -- --deny warnings