-
-
Notifications
You must be signed in to change notification settings - Fork 52
48 lines (40 loc) · 1.31 KB
/
exercises.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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@a898263d06c9cf32dd8b6d3ea28790baf8d30cd5
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'