30
30
strategy :
31
31
fail-fast : false
32
32
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 ]
35
35
steps :
36
36
- name : Checkout sources
37
37
uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # 4.2.2
@@ -51,27 +51,16 @@ jobs:
51
51
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)
52
52
clippy-annotation-reporter :
53
53
runs-on : ubuntu-latest
54
- uses : ./.github/actions/clippy-annotation-reporter
55
54
steps :
56
55
- name : Checkout sources
57
56
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
65
57
- 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 }}"
75
64
licensecheck :
76
65
runs-on : ubuntu-latest
77
66
name : " Presence of licence headers"
0 commit comments