Skip to content

Commit e8be9d2

Browse files
committed
Make the CI enforce make checkstyle clean code
1 parent fab01c8 commit e8be9d2

1 file changed

Lines changed: 54 additions & 0 deletions

File tree

.github/workflows/checkstyle.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
#
2+
# Copyright (c) 2026 Sebastian Pipping <sebastian@pipping.org>
3+
#
4+
# This program is free software; you can redistribute it and/or modify
5+
# it under the terms of the GNU General Public License as published by
6+
# the Free Software Foundation; either version 2 of the License, or (at
7+
# your option) any later version.
8+
#
9+
# This program is distributed in the hope that it will be useful, but
10+
# WITHOUT ANY WARRANTY; without even the implied warranty of
11+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12+
# General Public License for more details.
13+
#
14+
# You should have received a copy of the GNU General Public License
15+
# along with this program; if not, see
16+
# <http://www.gnu.org/licenses/>.
17+
#
18+
name: Enforce checkstyle-clean code
19+
20+
on:
21+
pull_request:
22+
push:
23+
schedule:
24+
- cron: '0 14 * * 5' # Every Friday 2pm
25+
workflow_dispatch:
26+
27+
# Drop permissions to minimum for security
28+
permissions:
29+
contents: read
30+
31+
jobs:
32+
checkstyle:
33+
name: Enforce checkstyle-clean code
34+
runs-on: ubuntu-24.04
35+
steps:
36+
- name: Install perltidy
37+
run: |-
38+
set -x
39+
sudo apt-get update
40+
sudo apt-get install --yes -V --no-install-recommends \
41+
cpanminus
42+
43+
# NOTE: We install a pinned version to ensure robust CI
44+
sudo cpanm --notest \
45+
https://github.com/perltidy/perltidy/archive/refs/tags/20260705.01.tar.gz
46+
47+
- uses: actions/checkout@v7
48+
49+
- name: Enforce "make checkstyle"
50+
run: |-
51+
set -x
52+
perltidy --version | grep -o 'v2.*'
53+
54+
MODE=full make checkstyle

0 commit comments

Comments
 (0)