mirror of
https://github.com/aljazceru/notedeck.git
synced 2025-12-18 17:14:21 +01:00
github: unify fmt and clippy step
Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
20
.github/workflows/rust.yml
vendored
20
.github/workflows/rust.yml
vendored
@@ -10,25 +10,17 @@ on:
|
||||
- "*"
|
||||
|
||||
jobs:
|
||||
fmt:
|
||||
name: Rustfmt
|
||||
lint:
|
||||
name: Rustfmt + Clippy
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: dtolnay/rust-toolchain@stable
|
||||
with:
|
||||
components: rustfmt
|
||||
- run: cargo fmt --all -- --check
|
||||
|
||||
clippy:
|
||||
name: Clippy
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: dtolnay/rust-toolchain@stable
|
||||
with:
|
||||
components: clippy
|
||||
- run: cargo clippy -- -D warnings
|
||||
components: rustfmt,clippy
|
||||
- run: |
|
||||
cargo fmt --all -- --check
|
||||
cargo clippy
|
||||
|
||||
linux-test:
|
||||
name: Test (Linux)
|
||||
|
||||
Reference in New Issue
Block a user