Skip to content

Commit

Permalink
Add cargo fmt and clippy to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
mmghannam committed Jul 20, 2024
1 parent 071d013 commit 33c0801
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/rust.yml → .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,22 @@ env:
CARGO_TERM_COLOR: always

jobs:
build:
fmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout
- name: Check formatting
run: cargo fmt -- --check

clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout
- name: Run clippy
run: cargo clippy --all-targets --all-features -- -D warnings

build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build
Expand Down

0 comments on commit 33c0801

Please sign in to comment.