Skip to content

Commit 1ec6f38

Browse files
committed
Split tests and lints into different CI jobs
1 parent 18d636d commit 1ec6f38

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,28 +8,33 @@ env:
88
CARGO_TERM_COLOR: always
99

1010
jobs:
11-
test:
11+
lint:
1212
runs-on: ubuntu-latest
1313
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository
1414
steps:
1515
- uses: actions/checkout@v4
1616
- uses: dtolnay/rust-toolchain@stable
1717
with:
18-
toolchain: stable
18+
toolchain: nightly
1919
components: rustfmt, clippy
2020
- uses: Swatinem/rust-cache@v2
21-
22-
- name: Check formating
23-
run: cargo fmt -- --check
24-
21+
- name: Check formatting
22+
run: cargo +nightly fmt -- --check
2523
- name: Clippy
2624
run: |
2725
cargo --version
2826
cargo clippy --version
2927
cargo clippy --all-targets --all-features -- --deny warnings
3028
31-
- name: Check formating
32-
run: cargo fmt -- --check
29+
test:
30+
runs-on: ubuntu-latest
31+
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository
32+
steps:
33+
- uses: actions/checkout@v4
34+
- uses: dtolnay/rust-toolchain@stable
35+
with:
36+
toolchain: stable
37+
- uses: Swatinem/rust-cache@v2
3338

3439
- name: Run tests
3540
run: cargo test --verbose

0 commit comments

Comments
 (0)