From 8f3d53e5ef9d1f571f09a320e1507547707c832d Mon Sep 17 00:00:00 2001 From: Thibault DUPONCHELLE Date: Sun, 7 Jan 2024 15:56:25 +0100 Subject: [PATCH] Add GitHub action workflow (lint) --- .github/workflows/lint.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/lint.yml diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..2a225d6 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,19 @@ +name: Lint +on: push +jobs: + lint: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + - name: Setup Perl + uses: shogo82148/actions-setup-perl@v1 + with: + perl-version: '5.34' + install-modules-with: cpanm + - name: Lint files + run: | + perl -MO=Lint *.pm + perl -MO=Lint *.pl + perl -MO=Lint lessons/*.pm +