1
1
mirror of https://github.com/theoludwig/advent_of_code.git synced 2025-02-20 14:38:48 +01:00

32 lines
654 B
YAML

name: "ci"
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
env:
CARGO_TERM_COLOR: "always"
jobs:
ci:
timeout-minutes: 30
runs-on: "ubuntu-latest"
strategy:
matrix:
rust-version: ["1.84.1", "stable"]
steps:
- uses: "actions/checkout@v4.2.2"
- uses: "dtolnay/rust-toolchain@master"
with:
toolchain: "${{ matrix.rust-version }}"
components: "clippy, rustfmt"
- run: "rustc --version"
- run: "cargo build --verbose"
- run: "cargo test --verbose"
- run: "cargo clippy --verbose -- -D warnings"
- run: "cargo fmt -- --check"