-
Notifications
You must be signed in to change notification settings - Fork 2
91 lines (80 loc) · 2.35 KB
/
check.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
name: "Check Workflow"
on: [push, pull_request]
jobs:
since-v520:
runs-on: ubuntu-latest
name: 'since v5.20'
outputs:
perl-versions: ${{ steps.action.outputs.perl-versions }}
steps:
- uses: actions/checkout@v4
- name: "uses perl-versions"
id: action
uses: ./
with:
since-perl: v5.20
since-520:
runs-on: ubuntu-latest
name: 'since 5.20'
outputs:
perl-versions: ${{ steps.action.outputs.perl-versions }}
steps:
- uses: actions/checkout@v4
- name: "uses perl-versions"
id: action
uses: ./
with:
since-perl: "5.20"
since-536-with-devel:
runs-on: ubuntu-latest
name: 'since 5.36 with devel'
outputs:
perl-versions: ${{ steps.action.outputs.perl-versions }}
steps:
- uses: actions/checkout@v4
- name: "uses perl-versions"
id: action
uses: ./
with:
since-perl: 5.36
with-devel: true
test-matrix:
runs-on: ubuntu-latest
needs:
- since-536-with-devel
strategy:
fail-fast: false
matrix:
perl-versions: ${{ fromJson (needs.since-536-with-devel.outputs.perl-versions) }}
steps:
- run: echo "Hello"
perl-tester:
runs-on: ubuntu-latest
needs:
- since-536-with-devel
name: "Perl ${{ matrix.perl-version }}"
strategy:
fail-fast: false
matrix:
perl-version: ${{ fromJson (needs.since-536-with-devel.outputs.perl-versions) }}
container:
image: perldocker/perl-tester:${{ matrix.perl-version }}
steps:
- uses: actions/checkout@v4
- run: perl -V
check:
needs:
- since-v520
- since-520
- since-536-with-devel
runs-on: ubuntu-latest
steps:
- name: "Testing since-v520"
run: |
[[ '${{ needs.since-v520.outputs.perl-versions }}' == '["5.20","5.22","5.24","5.26","5.28","5.30","5.32","5.34","5.36","5.38","5.40"]' ]] && echo "ok"
- name: "Testing since-520"
run: |
[[ '${{ needs.since-520.outputs.perl-versions }}' == '["5.20","5.22","5.24","5.26","5.28","5.30","5.32","5.34","5.36","5.38","5.40"]' ]] && echo "ok"
- name: "Testing since-536-with-devel"
run: |
[[ '${{ needs.since-536-with-devel.outputs.perl-versions }}' == '["5.36","5.38","5.40","devel"]' ]] && echo "ok"