Skip to content

Add doc generator to the CI, add WASM target builder #3

Add doc generator to the CI, add WASM target builder

Add doc generator to the CI, add WASM target builder #3

Workflow file for this run

name: tests
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
jobs:
test:
name: Test on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest, windows-latest, macOS-latest ]
steps:
- uses: actions/checkout@v5
- name: Build
run: cargo build --verbose
- name: Install cargo-hack
run: cargo install cargo-hack
- name: Test individual features
run: cargo hack test --each-feature
- name: Test with all features
run: cargo test --all-features
build:
name: Build for target ${{ matrix.target }}
runs-on: ubuntu-latest
strategy:
matrix:
target:
- wasm32-wasip1
steps:
- uses: actions/checkout@v5
- name: Add target
run: rustup target add ${{ matrix.target }}
- name: Fetch dependencies
run: cargo fetch
- name: Build for target
run: cargo build --all-features --target ${{ matrix.target }}
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- run: cargo fmt --all -- --check
clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- run: cargo clippy --all-features -- -D warnings
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- run: cargo doc --all-features --no-deps