1
1
mirror of https://github.com/theoludwig/billion_row_challenge.git synced 2024-11-09 22:08:51 +01:00
billion_row_challenge/.github/workflows/ci.yml

31 lines
630 B
YAML

name: "ci"
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
env:
CARGO_TERM_COLOR: "always"
jobs:
ci:
runs-on: "ubuntu-latest"
strategy:
matrix:
rust-version: ["1.79.0", "stable"]
steps:
- uses: "actions/checkout@v4.1.7"
- 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"