-
Notifications
You must be signed in to change notification settings - Fork 9
48 lines (40 loc) · 1.07 KB
/
lint.yml
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
42
43
44
45
46
47
48
on: push
name: Test & Lint
# Make sure CI fails on all warnings, including Clippy lints
env:
RUSTFLAGS: "-Dwarnings"
jobs:
clippy_check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: '1.76.0'
profile: minimal
override: true
target: wasm32-wasi
components: clippy
- name: Run Clippy
uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-features --all-targets
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: jcbhmr/setup-wasmtime@v2
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: '1.76.0'
profile: minimal
override: true
target: wasm32-wasi
components: clippy
- name: Install cargo wasi
run: cargo install cargo-wasi
- name: Run tests
run: cargo wasi test --lib -- --nocapture