Skip to content

Commit 4f23ea6

Browse files
committed
ci: Split format and clippy
Avoids warnings about unstable rustfmt options by using nightly for format. Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com>
1 parent 8c35903 commit 4f23ea6

1 file changed

Lines changed: 14 additions & 6 deletions

File tree

.github/workflows/ci.yml

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,21 @@ on:
77
pull_request:
88

99
jobs:
10-
code_quality:
11-
name: Code Quality
10+
format:
11+
name: Format
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v4
15-
- uses: dtolnay/rust-toolchain@stable
14+
- uses: actions/checkout@v6
15+
- uses: dtolnay/rust-toolchain@nightly
1616
- run: cargo fmt --check
17-
- run: cargo clippy
17+
18+
clippy:
19+
name: Clippy
20+
runs-on: ubuntu-latest
21+
steps:
22+
- uses: actions/checkout@v6
23+
- uses: dtolnay/rust-toolchain@stable
24+
- run: cargo clippy
1825

1926
integrity:
2027
name: Integrity Test
@@ -248,7 +255,8 @@ jobs:
248255
if: always()
249256
# needs all build to detect cancellation
250257
needs:
251-
- code_quality
258+
- format
259+
- clippy
252260
- build-toolchains
253261
- api_feature_levels
254262
- api_minimal_features

0 commit comments

Comments
 (0)