From d6d81a0c29e24166d9dfcdef5a362aa92fb0a220 Mon Sep 17 00:00:00 2001 From: Keenan Tims Date: Fri, 13 Dec 2024 17:47:31 -0800 Subject: [PATCH] CI: run tests --- .github/workflows/test.yaml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/test.yaml diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml new file mode 100644 index 0000000..401b04d --- /dev/null +++ b/.github/workflows/test.yaml @@ -0,0 +1,30 @@ +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 + - name: setup toolchain + uses: actions-rust-lang/setup-rust-toolchain@v1 + with: + cache: true + components: clippy, rustfmt + toolchain: 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