Skip to content

Commit b65fffd

Browse files
committed
chore: split out linting from ci-pr workflow
1 parent 9fd3cd3 commit b65fffd

File tree

2 files changed

+44
-34
lines changed

2 files changed

+44
-34
lines changed

.github/workflows/ci-pr.yml

Lines changed: 2 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,8 @@ concurrency:
88
cancel-in-progress: true
99

1010
jobs:
11-
ci-pr:
12-
name: CI-PR
13-
needs: [test-full, test-minimal, lint]
14-
runs-on: ubuntu-latest
15-
steps:
16-
- name: Done
17-
run: exit 0
1811
test-full:
19-
name: Tests
12+
name: Tests (full)
2013
strategy:
2114
fail-fast: false
2215
matrix:
@@ -39,7 +32,7 @@ jobs:
3932
- name: Test
4033
run: cargo test --all-features
4134
test-minimal:
42-
name: Tests
35+
name: Tests (Min)
4336
strategy:
4437
fail-fast: false
4538
matrix:
@@ -61,28 +54,3 @@ jobs:
6154
run: cargo test --no-run --no-default-features
6255
- name: Test
6356
run: cargo test --no-default-features
64-
lint:
65-
runs-on: ${{ matrix.os }}
66-
steps:
67-
- uses: actions/checkout@v4
68-
69-
- name: Check spelling
70-
uses: crate-ci/typos@master
71-
with:
72-
config: ./.typos.toml
73-
74-
- name: Install Rust
75-
uses: dtolnay/rust-toolchain@stable
76-
with:
77-
toolchain: nightly
78-
components: rustfmt, clippy
79-
80-
- uses: Swatinem/rust-cache@v2
81-
82-
- name: Clippy
83-
run: cargo clippy --all-features --all-targets
84-
85-
- name: Format Check
86-
run: cargo fmt --check
87-
88-

.github/workflows/lint.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Lint
2+
3+
on:
4+
pull_request:
5+
jobs:
6+
lint:
7+
name: Lint
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v4
11+
12+
- name: Check spelling
13+
uses: crate-ci/typos@master
14+
with:
15+
config: ./.typos.toml
16+
17+
- name: Install Rust
18+
uses: dtolnay/rust-toolchain@stable
19+
with:
20+
toolchain: nightly
21+
components: rustfmt, clippy
22+
23+
- uses: Swatinem/rust-cache@v2
24+
25+
- name: Clippy
26+
run: cargo clippy --all-features --all-targets
27+
28+
- name: Format Check
29+
run: cargo fmt --check
30+
msrv:
31+
name: MSRV
32+
runs-on: ubuntu-latest
33+
steps:
34+
- uses: actions/checkout@v4
35+
36+
- name: Install Rust
37+
uses: dtolnay/rust-toolchain@stable
38+
with:
39+
toolchain: 1.67.1
40+
41+
- name: Check
42+
run: cargo check

0 commit comments

Comments
 (0)