name: CI
on:
push:
branches: ['**']
pull_request:
workflow_call:
permissions:
contents: read
jobs:
check:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v7
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- run: cargo fmt --all -- --check
- run: cargo clippy --locked --all-targets --all-features -- -D warnings
- run: cargo clippy --locked --all-targets --no-default-features -- -D warnings
- run: cargo test --locked --all-features
- run: cargo test --locked --no-default-features
- run: cargo test --locked --release --all-features