Skip to content

fix(ci): correct toolchain for clippy #113

fix(ci): correct toolchain for clippy

fix(ci): correct toolchain for clippy #113

Workflow file for this run

---
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@a5ac7e51b41094c92402da3b24376905380afc29 # v4
- name: Install Rust
uses: dtolnay/rust-toolchain@d388a4836fcdbde0e50e395dc79a2670ccdef13f # stable
with:
toolchain: '1.81.0'
target: wasm32-wasip1
components: clippy
- name: Run Clippy
uses: clechasseur/rs-clippy-check@6489db34e7d7a162364f8ee3d7ad2cd1060dc1d7 # v3
with:
args: --all-features --all-targets
toolchain: '1.81.0'
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4
- uses: jcbhmr/setup-wasmtime@960c367a99921eb0b02f5778fce9ae8f110bf0f0 # v2
- name: Install Rust
uses: dtolnay/rust-toolchain@d388a4836fcdbde0e50e395dc79a2670ccdef13f # stable
with:
toolchain: '1.81.0'
target: wasm32-wasip1
- name: Install cargo wasi
run: cargo install cargo-wasi
- name: Run tests
run: cargo wasi test --lib -- --nocapture