Skip to content

Give all exercises same directory structure #758

Give all exercises same directory structure

Give all exercises same directory structure #758

Workflow file for this run

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@v4
- 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'