Skip to content

Commit 15462bf

Browse files
committed
Replace warning step with clippy
1 parent b13d368 commit 15462bf

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
@@ -111,13 +110,16 @@ jobs:
111110

112111
warnings:
113112
# Check for any warnings. This is informational and thus is allowed to fail.
114-
needs: check
115113
runs-on: ubuntu-latest
116114
steps:
117115
- uses: actions-rs/toolchain@v1
118116
with:
119117
toolchain: stable
118+
components: clippy
120119
profile: minimal
121120
- uses: actions/checkout@master
122-
- name: warnings
123-
run: RUSTFLAGS="-Dwarnings" cargo check --all
121+
- name: Clippy
122+
uses: actions-rs/clippy-check@v1
123+
with:
124+
token: ${{ secrets.TOKIO_TRACING_CLIPPY_TOKEN }}
125+
args: --all --bins --examples --tests --benches -- -D warnings

0 commit comments

Comments
 (0)