Skip to content

Add workaround for git diff issue in perltidy workflow and use updated perl images for all other tests #39

Add workaround for git diff issue in perltidy workflow and use updated perl images for all other tests

Add workaround for git diff issue in perltidy workflow and use updated perl images for all other tests #39

Workflow file for this run

name: perltidy
on:
push:
branches:
- '*'
tags-ignore:
- '*'
pull_request:
jobs:
perltidy:
runs-on: ubuntu-latest
container:
image: perl:5.32
steps:
- uses: actions/checkout@v2
- name: perl -V
run: perl -V
- name: Install dependencies
run: cpanm -n Perl::Tidy
- name: perltidy --version
run: perltidy --version
- name: Run perltidy
shell: bash
run: |
shopt -s extglob globstar nullglob
git config --global --add safe.directory "$GITHUB_WORKSPACE"
perltidy --pro=.../.perltidyrc -b -bext='/' **/*.p[lm] **/*.t && git diff --exit-code