b60cf29e72
Update checkoud, Use @dtolnay s rust-toolchain, and a problem-matcher.
37 lines
967 B
YAML
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
|