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:
|
jobs:
|
||||||
fmt:
|
lint:
|
||||||
name: Rustfmt
|
name: Rustfmt + Clippy
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: dtolnay/rust-toolchain@stable
|
- uses: dtolnay/rust-toolchain@stable
|
||||||
with:
|
with:
|
||||||
components: rustfmt
|
components: rustfmt,clippy
|
||||||
- run: cargo fmt --all -- --check
|
- run: |
|
||||||
|
cargo fmt --all -- --check
|
||||||
clippy:
|
cargo 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
|
|
||||||
|
|
||||||
linux-test:
|
linux-test:
|
||||||
name: Test (Linux)
|
name: Test (Linux)
|
||||||
|
|||||||
Reference in New Issue
Block a user