Skip to content

Commit e309410

Browse files
committed
fix ci, run clippy only in ubuntu stable
1 parent 974da55 commit e309410

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ jobs:
3333
uses: dtolnay/rust-toolchain@v1
3434
with:
3535
toolchain: ${{ matrix.rust }}
36-
components: clippy
3736

3837
- name: Cache
3938
uses: Swatinem/rust-cache@v2
@@ -46,16 +45,13 @@ jobs:
4645
- name: Run tests
4746
run: cargo test
4847

49-
- name: Run clippy
50-
run: cargo clippy
51-
5248
- name: Run onefetch
5349
run: cargo run
5450

5551
- name: Run onefetch (with commitgraph)
5652
run: git commit-graph write --no-progress --reachable && cargo run
5753

58-
formatting:
54+
lint:
5955
runs-on: ubuntu-latest
6056
steps:
6157
- name: Checkout repository
@@ -65,11 +61,14 @@ jobs:
6561
uses: dtolnay/rust-toolchain@v1
6662
with:
6763
toolchain: stable
68-
components: rustfmt
64+
components: clippy,rustfmt
6965

7066
- name: Run rustfmt
7167
run: cargo fmt -- --check
7268

69+
- name: Run clippy
70+
run: cargo clippy
71+
7372
coverage:
7473
runs-on: ubuntu-latest
7574
steps:

0 commit comments

Comments
 (0)