Skip to content

presubmit

presubmit #2

Workflow file for this run

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