name: CI
on:
pull_request:
push:
branches:
- master
workflow_dispatch:
permissions:
contents: read
env:
CARGO_TERM_COLOR: always
jobs:
test:
name: Format, lint, test
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Rust
run: |
rustup toolchain install stable --profile minimal
rustup default stable
rustup component add clippy rustfmt
- name: Check formatting
run: cargo fmt --check
- name: Lint
run: cargo clippy --locked --all-targets -- -D warnings
- name: Test
run: cargo test --locked