Skip to content

Commit

Permalink
feat(ci): run unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dj95 committed May 8, 2024
1 parent b284a0f commit d124427
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
on: push
name: Clippy check
name: Test & Lint

# Make sure CI fails on all warnings, including Clippy lints
env:
Expand All @@ -25,3 +25,24 @@ jobs:
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

0 comments on commit d124427

Please sign in to comment.