Skip to content

Commit d5c421c

Browse files
committed
Extract lints job
Signed-off-by: Wiktor Kwapisiewicz <wiktor@metacode.biz>
1 parent dcda207 commit d5c421c

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,14 @@ jobs:
2121
- name: Check formatting
2222
run: cargo fmt --all -- --check
2323

24+
lints:
25+
name: Check lints
26+
runs-on: ubuntu-latest
27+
steps:
28+
- uses: actions/checkout@v4
29+
- name: Check formatting
30+
run: cargo clippy --all-targets -- -D clippy::all -D clippy::cargo
31+
2432
docs:
2533
name: Check documentation
2634
runs-on: ubuntu-latest
@@ -30,7 +38,7 @@ jobs:
3038
run: RUSTDOCFLAGS="-Dwarnings" cargo doc --document-private-items --no-deps
3139

3240
check:
33-
name: Check
41+
name: Check for errors
3442
runs-on: ubuntu-latest
3543
continue-on-error: true
3644
strategy:
@@ -61,10 +69,6 @@ jobs:
6169
toolchain: ${{ matrix.toolchain }}
6270
- name: Install Rust target
6371
run: rustup target add ${{ matrix.target }}
64-
- name: Check formatting
65-
run: cargo fmt --all -- --check
66-
- name: Check lints
67-
run: cargo clippy --all-targets -- -D clippy::all -D clippy::cargo
6872
- name: Check source
6973
run: cargo check --target ${{ matrix.target }} --workspace --all-targets
7074
- name: Check all features source

0 commit comments

Comments
 (0)