Skip to content

Commit aa20da4

Browse files
try fix clippy workflow
1 parent a7a4d8c commit aa20da4

File tree

1 file changed

+16
-6
lines changed

1 file changed

+16
-6
lines changed

.github/workflows/clippy.yml

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,20 @@ jobs:
1313
matrix:
1414
version: [community, enterprise]
1515
steps:
16-
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
17-
- run: rustup component add clippy
18-
- uses: actions-rs/clippy-check@v1
16+
- uses: doctolib/actions/checkout@main
17+
18+
- name: Install rust
19+
uses: dtolnay/rust-toolchain@888c2e1ea69ab0d4330cbf0af1ecc7b68f368cc1 # v1
1920
with:
20-
token: ${{ secrets.GITHUB_TOKEN }}
21-
name: Clippy
22-
args: --features=${{ matrix.version }}
21+
toolchain: ${{ env.RUST_VERSION }}
22+
targets: ${{ inputs.target }}
23+
24+
- run: rustup component add clippy
25+
26+
- name: Clippy check
27+
shell: bash
28+
run: |
29+
set +e
30+
# shellcheck disable=SC2046
31+
cargo clippy --color always --features=${{ matrix.version }}
32+
exit "${PIPESTATUS[0]}"

0 commit comments

Comments
 (0)