Skip to content

ci: add cargo doc step to test job to catch broken intra-doc links (#173) #42

ci: add cargo doc step to test job to catch broken intra-doc links (#173)

ci: add cargo doc step to test job to catch broken intra-doc links (#173) #42

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- uses: Swatinem/rust-cache@v2
- run: cargo fmt --check
- run: cargo clippy --workspace --all-targets -- -D warnings
- run: cargo test --workspace
- run: RUSTDOCFLAGS="-D warnings" cargo doc --workspace --no-deps
wasm-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
targets: wasm32v1-none
- uses: Swatinem/rust-cache@v2
- run: cargo build --target wasm32v1-none --release