Skip to content

Commit 100a225

Browse files
committed
wip
1 parent 7b214ab commit 100a225

File tree

1 file changed

+8
-19
lines changed

1 file changed

+8
-19
lines changed

.github/workflows/lint.yml

Lines changed: 8 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ jobs:
3030
strategy:
3131
fail-fast: false
3232
matrix:
33-
rust_version: ["1.78.0", "stable", "nightly-2024-12-16"]
34-
platform: [windows-latest, ubuntu-latest]
33+
rust_version: [ "1.78.0", "stable", "nightly-2024-12-16" ]
34+
platform: [ windows-latest, ubuntu-latest ]
3535
steps:
3636
- name: Checkout sources
3737
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # 4.2.2
@@ -51,27 +51,16 @@ jobs:
5151
cargo clippy --workspace --all-targets --all-features -- -D warnings $([ ${{ matrix.rust_version }} = 1.78.0 ] || [ ${{ matrix.rust_version }} = stable ] && echo -Aunknown-lints -Ainvalid_reference_casting -Aclippy::redundant-closure-call)
5252
clippy-annotation-reporter:
5353
runs-on: ubuntu-latest
54-
uses: ./.github/actions/clippy-annotation-reporter
5554
steps:
5655
- name: Checkout sources
5756
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # 4.2.2
58-
- name: Install stable toolchain and clippy
59-
run: rustup install stable && rustup default
60-
- name: Build annotation reporter
61-
shell: bash
62-
run: |
63-
cd ${{ github.action_path }}
64-
cargo build --release
6557
- name: Run annotation reporter
66-
shell: bash
67-
run: |
68-
${{ github.action_path }}/target/release/clippy-annotation-reporter \
69-
--token "${{ secrets.GITHUB_TOKEN }}" \
70-
--rules "unwrap_used,expect_used,todo,unimplemented,panic,unreachable" \
71-
--repo "${{ github.repository }}" \
72-
--pr "${{ github.event.pull_request.number }}"
73-
env:
74-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
58+
uses: ./.github/actions/clippy-annotation-reporter
59+
with:
60+
github-token: "${{ secrets.GITHUB_TOKEN }}"
61+
allow-annotation-rules: "unwrap_used,expect_used,todo,unimplemented,panic,unreachable"
62+
# repo: "${{ github.repository }}"
63+
# pr: "${{ github.event.pull_request.number }}"
7564
licensecheck:
7665
runs-on: ubuntu-latest
7766
name: "Presence of licence headers"

0 commit comments

Comments
 (0)