@ -9,71 +9,37 @@ jobs:
strategy:
matrix:
os : [ ubuntu-latest, windows-latest, macOS-latest]
steps:
- uses : actions/checkout@v2
- uses : actions-rs/toolchain@v1
with:
toolchain : 1.56 .1
override : true
- uses : actions/checkout@v3
- name : Run tests
uses : actions-rs/cargo@v1
with:
command : test
args : --verbose
run : cargo test --all-features --verbose --release --all
- name : Verify working directory is clean
run : git diff --exit-code
bitrot:
name : Bitrot check
runs-on : ubuntu-latest
steps:
- uses : actions/checkout@v2
- uses : actions-rs/toolchain@v1
with:
toolchain : 1.56 .1
override : true
- uses : actions/checkout@v3
# Build benchmarks to prevent bitrot
- name : Build benchmarks
uses : actions-rs/cargo@v1
with:
command : build
args : --benches
run : cargo build --all --benches
doc-links:
name : Intra-doc links
runs-on : ubuntu-latest
steps:
- uses : actions/checkout@v2
- uses : actions-rs/toolchain@v1
with:
toolchain : 1.56 .1
override : true
- name : cargo fetch
uses : actions-rs/cargo@v1
with:
command : fetch
# Ensure intra-documentation links all resolve correctly
# Requires #![deny(intra_doc_link_resolution_failure)] in crates.
- uses : actions/checkout@v3
- run : cargo fetch
# Requires #![deny(rustdoc::broken_intra_doc_links)] in crates.
- name : Check intra-doc links
uses : actions-rs/cargo@v1
with:
command : doc
args : --document-private-items
run : cargo doc --all --document-private-items
fmt:
name : Rustfmt
timeout-minutes : 30
runs-on : ubuntu-latest
steps:
- uses : actions/checkout@v2
- uses : actions-rs/toolchain@v1
with:
toolchain : 1.56 .1
override : true
- run : rustup component add rustfmt
- uses : actions-rs/cargo@v1
with:
command : fmt
args : -- --check
- uses : actions/checkout@v3
- name : Check formatting
run : cargo fmt --all -- --check