Skip to content

Commit

Permalink
Split formatting and linting jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
avsaase committed Aug 21, 2024
1 parent c6de78a commit 5f91a17
Showing 1 changed file with 19 additions and 4 deletions.
23 changes: 19 additions & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,23 +50,38 @@ jobs:
- name: Run cargo test
run: cargo test --all-targets --all-features

lints:
formatting:
name: Lints
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Install toolchain
uses: dtolnay/rust-toolchain@stable
uses: dtolnay/rust-toolchain@nightly
with:
components: rustfmt, clippy
components: rustfmt

- name: Cache dependencies
uses: Swatinem/rust-cache@v2

- name: Run cargo fmt
run: cargo +nightly fmt --check

lints:
name: Lints
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Install toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: clippy

- name: Cache dependencies
uses: Swatinem/rust-cache@v2

- name: Run cargo clippy
run: cargo clippy --all-targets --all-features -- -D warnings
run: cargo clippy --all-targets --all-features -- -D warnings

0 comments on commit 5f91a17

Please sign in to comment.