36 lines
714 B
YAML
Raw Normal View History

2024-12-13 17:47:31 -08:00
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: fake inputs
run: |
mkdir -p input/2024/
for i in $(seq 1 25); do touch input/2024/day${i}.txt; done
2024-12-13 17:47:31 -08:00
- name: cargo test
2024-12-13 18:09:16 -08:00
run: cargo test --lib --all-features
2024-12-13 17:47:31 -08:00
- name: rustfmt
run: cargo fmt --all -- --check
2024-12-13 18:09:16 -08:00
# - name: clippy
# run: cargo clippy --lib --all-features --tests -- -D warnings