# GitHub Actions CI for this crate.
name: ci
on:
pull_request:
push:
branches:
jobs:
check:
runs-on: ubuntu-latest
env:
SIMDOC_TOOLING_MANIFEST: ${{ github.workspace }}/sim-tooling/Cargo.toml
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha || github.sha }}
- uses: actions/checkout@v4
with:
repository: sim-nest/sim-tooling
path: sim-tooling
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- run: cargo fmt --all --check
- run: cargo test -p sim-conformance
- run: cargo test --workspace
- run: cargo clippy --workspace --all-targets -- -D warnings
- run: cargo doc --workspace --no-deps
env:
RUSTDOCFLAGS: -D warnings
- run: cargo clippy --workspace --all-features --all-targets -- -D warnings
- run: cargo test --workspace --all-features
- run: cargo run -p xtask -- simdoc --check