Bump shogo82148/actions-setup-perl from 1.24.2 to 1.26.0 #779
Workflow file for this run
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: Exercises | |
on: | |
- push | |
- pull_request | |
jobs: | |
job: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: ['ubuntu-22.04', 'macos-12'] | |
perl: ['5.38', '5.36', '5.34', '5.32', '5.30', '5.28', '5.26', '5.24', '5.22', '5.20'] | |
include: | |
- os: 'windows-2022' | |
perl: '5.32' | |
name: Perl ${{ matrix.perl }} on ${{ matrix.os }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 | |
- name: Set up perl | |
uses: shogo82148/actions-setup-perl@b85abdedef080b3995bd109b3bd6bc99abbeb080 | |
with: | |
perl-version: ${{ matrix.perl }} | |
distribution: strawberry | |
- run: cpm install -g Test2::V0 | |
- name: Exercise modules | |
shell: pwsh | |
run: > | |
(Get-ChildItem ./exercises/practice/*/.meta/solutions -Recurse -Include cpanfile).ForEach({ | |
cd (Split-Path -Path $_ -Parent); | |
echo "$_"; | |
cpm install; | |
cd -; | |
}) | |
- name: Test with prove | |
run: prove exercises/practice/*/.meta/solutions/ --recurse --jobs 2 | |
- run: cpm install -g App::Yath | |
if: runner.os != 'Windows' | |
- name: Test with yath | |
run: yath test exercises/practice/*/.meta/solutions/ --jobs 2 | |
if: runner.os != 'Windows' |