album/.github/workflows/ci.yml
Rasmus Kaj b60cf29e72 Update CI.
Update checkoud, Use @dtolnay s rust-toolchain, and a problem-matcher.
2023-01-28 17:36:13 +01:00

37 lines
967 B
YAML

# Based on https://github.com/actions-rs/meta/blob/master/recipes/msrv.md
on: [push, pull_request]
name: CI
jobs:
rustfmt:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
- run: echo "::add-matcher::.github/workflows/rust-problem-matcher.json"
- run: cargo fmt --all -- --check
clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- run: echo "::add-matcher::.github/workflows/rust-problem-matcher.json"
- run: cargo clippy --all-features
test:
name: Test Suite
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- run: echo "::add-matcher::.github/workflows/rust-problem-matcher.json"
- run: cargo test -q