Skip to content

Commit

Permalink
Run Clippy on stable rustc; tweak workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
dhardy committed Dec 17, 2024
1 parent a9ee121 commit 6b4c26b
Showing 1 changed file with 5 additions and 14 deletions.
19 changes: 5 additions & 14 deletions .github/workflows/workspace.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,30 +4,21 @@ on:
pull_request:
paths-ignore:
- README.md
- "benches/**"
push:
branches: master
paths-ignore:
- README.md
- "benches/**"

jobs:
clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: 1.78.0
components: clippy
- run: cargo clippy --all --all-targets -- -D warnings

rustfmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
components: rustfmt
- run: cargo fmt --all -- --check
components: clippy, rustfmt
- name: Clippy
run: cargo clippy --all --all-targets -- -D warnings
- name: Rustfmt
run: cargo fmt --all -- --check

0 comments on commit 6b4c26b

Please sign in to comment.