-
-
Notifications
You must be signed in to change notification settings - Fork 33
37 lines (32 loc) · 1.1 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
name: Exercises
on:
- push
- pull_request
jobs:
job:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ['ubuntu-22.04', 'macos-12', 'windows-2022']
name: Rakudo Star on ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- name: Install Rakudo Star with choco
if: runner.os == 'Windows'
run: >
choco install rakudostar;
echo "C:\rakudo\bin;C:\rakudo\share\perl6\site\bin"
| Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
- name: Install Rakudo Star with brew
if: runner.os == 'macOS'
run: brew install rakudo-star
- name: Rakudo Star tests with prove6
if: runner.os != 'Linux'
run: prove6 --jobs 2 (Get-Item -Path exercises/practice/*/.meta/solutions/)
shell: pwsh
- name: Rakudo Star tests with docker run
if: runner.os == 'Linux'
uses: docker://rakudo-star:latest
with:
args: /bin/bash -c "prove6 --jobs 2 /github/workspace/exercises/practice/*/.meta/solutions/"