presubmit #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: test suite | |
on: [push, pull_request, workflow_dispatch] | |
jobs: | |
test: | |
name: cargo test --all-features | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: moonrepo/setup-rust@v1 | |
- run: cargo test --all-features | |
rustfmt: | |
name: cargo +nightly fmt -- --check | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: moonrepo/setup-rust@v1 | |
with: | |
channel: 'nightly' | |
- run: cargo +nightly fmt -- --check | |
cranky: | |
name: cargo +nightly cranky --all-targets -- -D warnings | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: moonrepo/setup-rust@v1 | |
with: | |
channel: 'nightly' | |
- run: cargo +nightly cranky --all-targets -- -D warnings | |
deny: | |
name: cargo deny check | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: moonrepo/setup-rust@v1 | |
with: | |
bins: cargo-deny | |
- run: cargo deny check | |
miri: | |
name: cargo +nightly miri test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: moonrepo/setup-rust@v1 | |
with: | |
components: miri | |
channel: 'nightly' | |
- run: cargo +nightly miri test |