name: CI
on:
push:
pull_request:
permissions:
contents: read
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- name: Use pathwise from crates.io
run: |
sed -i -E 's|^pathwise = \{ version = "([^"]+)", path = "\.\./pathwise" \}$|pathwise = "\1"|' Cargo.toml
if grep -n 'path = "../pathwise"' Cargo.toml; then echo "pathwise path dependency not removed" >&2; exit 1; fi
grep -n '^pathwise' Cargo.toml
- run: cargo build --all-targets
- run: cargo test --all-targets
- run: cargo fmt --check
- run: cargo clippy --all-targets --all-features -- -D warnings
- run: cargo doc --no-deps
env:
RUSTDOCFLAGS: -D warnings