-
Notifications
You must be signed in to change notification settings - Fork 33
35 lines (32 loc) · 1.02 KB
/
perlCritic.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Perlcritic check
on:
pull_request:
types: [opened, synchronize]
jobs:
critic:
runs-on: ubuntu-latest
if: github.event_name == 'pull_request'
steps:
- name: Checkout repository
uses: actions/checkout@v4
- uses: shogo82148/actions-setup-perl@v1.31.3
with:
perl-version: 5.32
install-modules-with: cpanm
install-modules: Perl::Critic
install-modules-args: --notest
- uses: reviewdog/action-setup@v1
with:
reviewdog_version: latest # Optional. [latest,nightly,v.X.Y.Z]
- name: run perlcritic and send report via reviewdog
env:
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
perlcritic --list
(perlcritic --profile .perlcritic ./FHEM; perlcritic --profile .perlcritic ./lib; ) | \
reviewdog -efm '%f:%l:%c:%m' \
-name="perlcritic" \
-reporter="github-pr-check" \
-filter-mode="file" \
-fail-on-error="false" \
-level="warning" \