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