Skip to content

Commit 4995f20

Browse files
committed
Run perltidy for pull requests
1 parent f580c3b commit 4995f20

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

.github/workflows/perltidy.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: perltidy
2+
on:
3+
push:
4+
branches:
5+
- '*'
6+
tags-ignore:
7+
- '*'
8+
pull_request:
9+
jobs:
10+
perltidy:
11+
runs-on: ubuntu-latest
12+
container:
13+
image: perl:5.32
14+
steps:
15+
- uses: actions/checkout@v2
16+
- name: perl -V
17+
run: perl -V
18+
- name: Install dependencies
19+
run: cpanm -n Perl::Tidy
20+
- name: perltidy --version
21+
run: perltidy --version
22+
- name: Run perltidy
23+
shell: bash
24+
run: |
25+
shopt -s extglob globstar nullglob
26+
perltidy --pro=.../.perltidyrc -b -bext='/' **/*.p[lm] **/*.t && git diff --exit-code

0 commit comments

Comments
 (0)