CI: Check Linting and Format
This commit is contained in:
parent
a6fbc3d13a
commit
b7a4b9da2c
18
.github/workflows/rust.yml
vendored
18
.github/workflows/rust.yml
vendored
@ -1,10 +1,10 @@
|
|||||||
name: Cargo Build & Test
|
name: Cargo Build, Test, and Linting
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
pull_request:
|
pull_request:
|
||||||
|
|
||||||
env:
|
env:
|
||||||
CARGO_TERM_COLOR: always
|
CARGO_TERM_COLOR: always
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
@ -14,9 +14,13 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
toolchain:
|
toolchain:
|
||||||
- stable
|
- stable
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
|
|
||||||
- run: cargo build --verbose
|
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
|
||||||
- run: cargo test --verbose
|
- run: cargo build --verbose
|
||||||
|
- run: cargo test --verbose
|
||||||
|
- run: cargo clippy --all-targets --all-features --no-default-features -- -D warnings
|
||||||
|
- run: cargo fmt --check
|
||||||
Loading…
Reference in New Issue
Block a user