Skip to content

Commit

Permalink
ci: run clippy in the CI
Browse files Browse the repository at this point in the history
  • Loading branch information
jwong101 committed Mar 1, 2024
1 parent b3690fc commit 9a55b19
Showing 1 changed file with 22 additions and 8 deletions.
30 changes: 22 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,26 @@ jobs:
name: Linux Tester
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
- run: cargo test --workspace
format:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
components: rustfmt
- name: run rustfmt
uses: actions-rust-lang/rustfmt@v1
clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: stable
components: rustfmt clippy rust-src
- uses: Swatinem/rust-cache@v2
- run: cargo test
- run: cargo check
- run: cargo fmt --all --check
components: clippy
- name: run clippy
run: cargo clippy --workspace

0 comments on commit 9a55b19

Please sign in to comment.