name: CI
on:
pull_request:
push:
branches:
jobs:
test:
name: Tests
strategy:
fail-fast: false
matrix:
rust:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: rustup toolchain default ${{ matrix.rust }} --profile minimal
- run: cargo test --workspace --all-features
clippy:
name: Lints
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
# Default to latest stable as installed on the runners.
# This does mean there may be updates that break this job at some point.
- run: cargo fmt --all -- --check
- run: cargo clippy --workspace --all-targets --all-features -- -D warning