Skip to content

Commit

Permalink
Split clippy and rustfmt jobs
Browse files Browse the repository at this point in the history
Signed-off-by: Nico Burns <[email protected]>
  • Loading branch information
nicoburns committed Dec 23, 2024
1 parent 91e6c0c commit 41cdc1c
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,25 +48,23 @@ jobs:
- run: cargo check --lib --all-features

lint:
name: Lint
format:
name: Format
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Install stable toolchain
run: |
rustup set profile minimal
rustup override set stable
- name: Install clippy
run: |
rustup component add clippy
rustup component add rustfmt
- name: Format
- name: Install rustfmt
run: rustup component add rustfmt
- name: Check Format
run: cargo fmt --all -- --check

clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install clippy
run: rustup component add clippy
- name: Run clippy
run: cargo clippy --all-features --all-targets -- -D warnings

Expand Down

0 comments on commit 41cdc1c

Please sign in to comment.