Skip to content

Commit 9e1cbde

Browse files
committed
Replace warning step with clippy
1 parent 305c894 commit 9e1cbde

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/CI.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ jobs:
1313
- uses: actions-rs/toolchain@v1
1414
with:
1515
toolchain: ${{ matrix.rust }}
16-
components: clippy
1716
profile: minimal
1817
- uses: actions/checkout@master
1918
- name: Check
@@ -186,13 +185,16 @@ jobs:
186185

187186
warnings:
188187
# Check for any warnings. This is informational and thus is allowed to fail.
189-
needs: check
190188
runs-on: ubuntu-latest
191189
steps:
192190
- uses: actions-rs/toolchain@v1
193191
with:
194192
toolchain: stable
193+
components: clippy
195194
profile: minimal
196195
- uses: actions/checkout@master
197-
- name: warnings
198-
run: RUSTFLAGS="-Dwarnings" cargo check --all
196+
- name: Clippy
197+
uses: actions-rs/clippy-check@v1
198+
with:
199+
token: ${{ secrets.GITHUB_TOKEN }}
200+
args: --all --bins --examples --tests --benches -- -D warnings

0 commit comments

Comments
 (0)