2022-06-10 21:29:51 +00:00
|
|
|
on: [push, pull_request]
|
|
|
|
|
|
|
|
name: Continuous integration
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
check:
|
|
|
|
name: Check
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-02-21 21:21:41 +00:00
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: dtolnay/rust-toolchain@stable
|
|
|
|
- run: cargo check
|
2022-06-10 21:29:51 +00:00
|
|
|
|
|
|
|
test:
|
|
|
|
name: Test Suite
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-02-21 21:21:41 +00:00
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: dtolnay/rust-toolchain@stable
|
|
|
|
- run: cargo test
|
2022-06-10 21:29:51 +00:00
|
|
|
|
|
|
|
fmt:
|
|
|
|
name: Rustfmt
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-02-21 21:21:41 +00:00
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: dtolnay/rust-toolchain@stable
|
2022-06-10 21:29:51 +00:00
|
|
|
with:
|
2023-02-21 21:21:41 +00:00
|
|
|
components: rustfmt
|
|
|
|
- run: cargo fmt --all -- --check
|
2022-06-10 21:29:51 +00:00
|
|
|
|
|
|
|
clippy:
|
|
|
|
name: Clippy
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-02-21 21:21:41 +00:00
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: dtolnay/rust-toolchain@stable
|
2022-06-10 21:29:51 +00:00
|
|
|
with:
|
2023-02-21 21:21:41 +00:00
|
|
|
components: clippy
|
|
|
|
- run: cargo clippy -- -D warnings
|