Skip to content

Commit

Permalink
Add clippy checks to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
JarredAllen authored Jan 7, 2025
1 parent bd7ce63 commit 8e51af4
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Rust
name: Build and Test

on:
push:
Expand All @@ -9,13 +9,24 @@ on:
env:
CARGO_TERM_COLOR: always

permissions:
checks: write

jobs:
build:
build-and-test:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- uses: Swatinem/rust-cache@v2
- uses: auguwu/clippy-action@1.4.0
with:
args: "--deny warnings"
token: ${{secrets.GITHUB_TOKEN}}
- name: Build
run: cargo build --verbose
- name: Run tests
Expand Down

0 comments on commit 8e51af4

Please sign in to comment.