Update actions/checkout action to v4.2.1 #201
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: | |
- master | |
# Run tests for any PRs. | |
pull_request: | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: | |
- "ubuntu-latest" | |
- "macos-latest" | |
perl: | |
- "5.38" | |
- "5.36" | |
- "5.10" | |
name: Perl ${{ matrix.perl }} on ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4.2.1 | |
- name: Setup perl | |
uses: shogo82148/actions-setup-perl@v1.31.3 | |
with: | |
perl-version: ${{ matrix.perl }} | |
- run: perl -V | |
- name: Force install ExtUtils::MakeMaker on machines running old perl version | |
run: cpanm ExtUtils::MakeMaker --notest --force | |
if: matrix.perl == '5.10' | |
# https://github.com/rjbs/Test-Deep/blob/7c6261797dae99879068d682a5648dc3efd23323/Changes#L24 | |
- name: Pin Test::Deep for old perl | |
run: cpanm Test::Deep@1.130 --notest --force | |
if: matrix.perl == '5.10' | |
- run: cpanm --installdeps . | |
- run: prove -lv t | |
- run: tail -n 150 /home/runner/.cpanm/work/*/build.log | |
if: ${{ failure() && matrix.os == 'ubuntu-latest' }} | |
- run: tail -n 150 /Users/runner/.cpanm/work/*/build.log | |
if: ${{ failure() && matrix.os == 'macos-latest' }} |