-
Notifications
You must be signed in to change notification settings - Fork 12
44 lines (36 loc) · 1.2 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
---
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@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Install Rust
uses: dtolnay/rust-toolchain@4f647fc679bcd3b11499ccb42104547c83dabe96 # stable
with:
toolchain: '1.83.0'
target: wasm32-wasip1
components: clippy
- name: Run Clippy
uses: clechasseur/rs-clippy-check@50a0fd6f2f1a33307d603ee50d91eadbb2561120 # v3
with:
args: --all-features --lib
toolchain: '1.83.0'
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- uses: jcbhmr/setup-wasmtime@960c367a99921eb0b02f5778fce9ae8f110bf0f0 # v2
- name: Install Rust
uses: dtolnay/rust-toolchain@4f647fc679bcd3b11499ccb42104547c83dabe96 # stable
with:
toolchain: '1.83.0'
target: wasm32-wasip1
- name: Install cargo wasi
run: cargo install cargo-wasi
- name: Run tests
run: cargo wasi test --lib -- --nocapture