Sync the kindergarten-garden
exercise's docs with the latest data.
#852
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@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b | |
- name: Set up perl | |
uses: shogo82148/actions-setup-perl@28eae78d12c2bba1163aec45d123f6d9228bc307 | |
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' |