Rename arrays concept to arrays-and-lists #661
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-latest', 'macos-latest'] | |
perl: ['5.38', '5.36', '5.34', '5.32', '5.30', '5.28', '5.26', '5.24', '5.22', '5.20'] | |
include: | |
- os: 'windows-latest' | |
perl: '5.32' | |
name: Perl ${{ matrix.perl }} on ${{ matrix.os }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set up perl | |
uses: shogo82148/actions-setup-perl@v1 | |
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' |