-
Notifications
You must be signed in to change notification settings - Fork 3
43 lines (40 loc) · 1.07 KB
/
perlcritic.yml
File metadata and controls
43 lines (40 loc) · 1.07 KB
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
36
37
38
39
40
41
42
43
---
name: PerlCritic
on:
push:
pull_request:
schedule:
- cron: "0 0 * * 0"
workflow_dispatch:
permissions: {}
jobs:
check:
name: Check with PerlCritic
runs-on: ubuntu-latest
steps:
- name: Set REPOSITORY
shell: bash
run: |
set -euo pipefail
IFS=$'\n\t'
echo "REPOSITORY=${GITHUB_REPOSITORY#*/}" >> "${GITHUB_ENV}"
- name: Check out
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
persist-credentials: false
- name: Install PerlCritic
shell: bash
run: |
set -euo pipefail
IFS=$'\n\t'
sudo apt-get update
sudo apt-get install --no-install-recommends -y libperl-critic-perl=1.152-1
if sudo apt-get upgrade -s libperl-critic-perl | tee -a /dev/stderr | grep -q -e '^Inst libperl-critic-perl '; then
exit 1
fi
- name: Run PerlCritic
shell: bash
run: |
set -euo pipefail
IFS=$'\n\t'
perlcritic ${REPOSITORY}