Skip to content

Commit

Permalink
Also check rustfmt/clippy earlier on other platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
sourcefrog authored Jan 10, 2025
1 parent 458f6d3 commit ae6ccdb
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,13 @@ jobs:
cargo --version
rustc --version
- uses: Swatinem/rust-cache@v2
- name: rustfmt
run: cargo fmt --all -- --check
- name: Check rustfmt
run: cargo fmt --all --check
- name: Check clippy
if: matrix.version == 'stable'
# Clippy checks can vary between versions in a way that makes it a bit
# fiddly to satisfy them all, so only insist that they pass on stable.
run: cargo clippy --all-targets --all-features -- -D warnings
- uses: taiki-e/install-action@v2
name: Install nextest using install-action
with:
Expand All @@ -97,13 +102,6 @@ jobs:
run: cargo build --all-targets
- name: Test
run: cargo test --workspace
- name: Check rustfmt
run: cargo fmt --all --check
- name: Check clippy
if: matrix.version == 'stable'
# Clippy checks can vary between versions in a way that makes it a bit
# fiddly to satisfy them all, so only insist that they pass on stable.
run: cargo clippy --all-targets --all-features -- -D warnings
- run: cargo update
- name: Test after cargo update
run: cargo test --workspace
Expand Down

0 comments on commit ae6ccdb

Please sign in to comment.