Skip to content

Commit d993194

Browse files
committed
CI: Install clippy
1 parent d0094d9 commit d993194

File tree

1 file changed

+14
-9
lines changed

1 file changed

+14
-9
lines changed

.github/workflows/rust.yml

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,21 @@ jobs:
1111

1212
steps:
1313
- uses: actions/checkout@v1
14-
- name: Install toolchain
15-
uses: actions-rs/toolchain@v1
14+
- uses: actions-rs/toolchain@v1
1615
with:
1716
toolchain: ${{ matrix.rust }}
1817
profile: minimal
1918
default: true
20-
- name: Build
21-
run: cargo build --verbose
22-
- name: Run tests
23-
run: cargo test --verbose
24-
- name: Run clippy
25-
if: matrix.rust == 'nightly'
26-
run: cargo clippy -- -D warnings
19+
- run: cargo build --verbose
20+
- run: cargo test --verbose
21+
clippy:
22+
runs-on: ubuntu-latest
23+
steps:
24+
- uses: actions/checkout@v1
25+
- uses: actions-rs/toolchain@v1
26+
with:
27+
profile: minimal
28+
toolchain: nightly
29+
override: true
30+
components: clippy
31+
- run: cargo clippy -- -D warnings

0 commit comments

Comments
 (0)