name: CI
on:
push:
branches:
- main
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
checks:
name: Build, Test, Clippy
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
toolchain: 1.86.0
components: clippy
- name: Cache cargo artifacts
uses: Swatinem/rust-cache@v2
- name: Build
run: cargo build --workspace --locked
- name: Test
run: cargo test --workspace --locked
- name: Test (all features)
run: cargo test --workspace --all-features --locked
- name: Clippy
run: cargo clippy --workspace --all-features --all-targets --locked -- -D warnings