chore: fix things up

This commit is contained in:
Stevan Freeborn
2026-03-25 14:01:11 -05:00
parent 64e5bf0b72
commit b4813dfd07
4 changed files with 8 additions and 33 deletions
+2 -11
View File
@@ -1,14 +1,11 @@
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
env:
CARGO_TERM_COLOR: always
jobs:
check:
name: Check (${{ matrix.toolchain }})
@@ -17,31 +14,25 @@ jobs:
matrix:
toolchain: [stable, nightly]
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
- name: Install Rust ${{ matrix.toolchain }}
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.toolchain }}
components: rustfmt, clippy
- name: Cache cargo registry and build
uses: actions/cache@v4
uses: actions/cache@v5
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ matrix.toolchain }}-${{ hashFiles('**/Cargo.toml') }}
- name: Check formatting
run: cargo fmt --check
- name: Run clippy
run: cargo clippy -- -D warnings
- name: Build
run: cargo build
- name: Run tests
run: cargo test