Skip to content

Commit a1c1a9d

Browse files
committed
wip move to separate workflow
1 parent 15014f4 commit a1c1a9d

File tree

2 files changed

+31
-12
lines changed

2 files changed

+31
-12
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Clippy Annotation Reporter
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
clippy-annotation-reporter:
8+
runs-on: ubuntu-latest
9+
env:
10+
CARGO_TERM_COLOR: always
11+
steps:
12+
- name: Free Disk Space
13+
uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be # v1.3.1
14+
with:
15+
tool-cache: false
16+
android: true
17+
dotnet: true
18+
haskell: true
19+
large-packages: false
20+
docker-images: true
21+
swap-storage: true
22+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # 4.2.2
23+
- name: Install Rust
24+
run: rustup install stable
25+
- name: Run annotation reporter
26+
uses: ./.github/actions/clippy-annotation-reporter
27+
with:
28+
github-token: "${{ secrets.GITHUB_TOKEN }}"
29+
allow-annotation-rules: "unwrap_used,expect_used,todo,unimplemented,panic,unreachable"
30+
# repo: "${{ github.repository }}"
31+
# pr: "${{ github.event.pull_request.number }}"

.github/workflows/lint.yml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -49,18 +49,6 @@ jobs:
4949
fi
5050
# shellcheck disable=SC2046
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)
52-
clippy-annotation-reporter:
53-
runs-on: ubuntu-latest
54-
steps:
55-
- name: Checkout sources
56-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # 4.2.2
57-
- name: Run annotation reporter
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 }}"
6452
licensecheck:
6553
runs-on: ubuntu-latest
6654
name: "Presence of licence headers"

0 commit comments

Comments
 (0)