CI: run tests
Some checks failed
test / AoC 2024 (push) Failing after 1m1s

This commit is contained in:
Keenan Tims 2024-12-13 17:47:31 -08:00
parent ed184fc92c
commit f9d192123e
Signed by: ktims
GPG Key ID: 11230674D69038D4

29
.github/workflows/test.yaml vendored Normal file
View File

@ -0,0 +1,29 @@
name: test
on:
push:
branches: [ main ]
env:
CARGO_TERM_COLOR: always
jobs:
tests:
name: AoC 2024
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: Swatinem/rust-cache@v2
- name: setup toolchain
uses: hecrj/setup-rust-action@v1
with:
rust-version: stable
- name: cargo test
run: cargo test --all-features
- name: rustfmt
run: cargo fmt --all -- --check
- name: clippy
run: cargo clippy --all --all-features --tests -- -D warnings