Skip to content

Add release tests

Add release tests #151

Workflow file for this run

name: tests
on: [push, pull_request]
jobs:
stable:
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
rust: [1.71.0]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
default: true
components: clippy
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
target: wasm32-unknown-unknown
- uses: Swatinem/rust-cache@3bb3a9a087029c7bc392586cdc88cb6f66b9c6ef
if: ${{ !env.ACT }}
- uses: actions-rs/[email protected]
with:
crate: wasm-pack
version: 0.12.1
- run: cargo clippy --all-targets -- -D warnings -D clippy::all
- run: cargo build --all-targets
- run: cargo doc
- run: cargo test
- run: cargo test --benches --tests --release
nightly:
strategy:
matrix:
os: [ubuntu-latest]
rust: [nightly-2023-06-06]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
default: true
components: rustfmt
- uses: Swatinem/rust-cache@3bb3a9a087029c7bc392586cdc88cb6f66b9c6ef
if: ${{ !env.ACT }}
- uses: actions-rs/[email protected]
with:
crate: cargo-udeps
version: 0.1.41
- run: cargo fmt --all -- --check
- run: cargo udeps --all-targets