Skip to content

Commit 8c496e3

Browse files
authored
Merge pull request #3 from atoomic/md
Prep before publishing action
2 parents 75e5082 + 58d28cf commit 8c496e3

File tree

483 files changed

+7376
-101077
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

483 files changed

+7376
-101077
lines changed

.github/workflows/check.yml

+91
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
name: "Check Workflow"
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
7+
since-v520:
8+
runs-on: ubuntu-latest
9+
name: 'since v5.20'
10+
outputs:
11+
perl-versions: ${{ steps.action.outputs.perl-versions }}
12+
steps:
13+
- uses: actions/checkout@v4
14+
- name: "uses perl-versions"
15+
id: action
16+
uses: ./
17+
with:
18+
since-perl: v5.20
19+
20+
since-520:
21+
runs-on: ubuntu-latest
22+
name: 'since 5.20'
23+
outputs:
24+
perl-versions: ${{ steps.action.outputs.perl-versions }}
25+
steps:
26+
- uses: actions/checkout@v4
27+
- name: "uses perl-versions"
28+
id: action
29+
uses: ./
30+
with:
31+
since-perl: "5.20"
32+
33+
since-536-with-devel:
34+
runs-on: ubuntu-latest
35+
name: 'since 5.36 with devel'
36+
outputs:
37+
perl-versions: ${{ steps.action.outputs.perl-versions }}
38+
steps:
39+
- uses: actions/checkout@v4
40+
- name: "uses perl-versions"
41+
id: action
42+
uses: ./
43+
with:
44+
since-perl: 5.36
45+
with-devel: true
46+
47+
test-matrix:
48+
runs-on: ubuntu-latest
49+
needs:
50+
- since-536-with-devel
51+
strategy:
52+
fail-fast: false
53+
matrix:
54+
perl-versions: ${{ fromJson (needs.since-536-with-devel.outputs.perl-versions) }}
55+
steps:
56+
- run: echo "Hello"
57+
58+
perl-tester:
59+
runs-on: ubuntu-latest
60+
needs:
61+
- since-536-with-devel
62+
name: "Perl ${{ matrix.perl-version }}"
63+
strategy:
64+
fail-fast: false
65+
matrix:
66+
perl-version: ${{ fromJson (needs.since-536-with-devel.outputs.perl-versions) }}
67+
container:
68+
image: perldocker/perl-tester:${{ matrix.perl-version }}
69+
steps:
70+
- uses: actions/checkout@v4
71+
- run: perl -V
72+
73+
check:
74+
needs:
75+
- since-v520
76+
- since-520
77+
- since-536-with-devel
78+
runs-on: ubuntu-latest
79+
steps:
80+
81+
- name: "Testing since-v520"
82+
run: |
83+
[[ '${{ 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"]' ]] && echo "ok"
84+
85+
- name: "Testing since-520"
86+
run: |
87+
[[ '${{ 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"]' ]] && echo "ok"
88+
89+
- name: "Testing since-536-with-devel"
90+
run: |
91+
[[ '${{ needs.since-536-with-devel.outputs.perl-versions }}' == '["5.36","5.38","devel"]' ]] && echo "ok"

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/node_modules/

README.md

+18-9
Original file line numberDiff line numberDiff line change
@@ -25,26 +25,35 @@ if available.
2525

2626
## Usage
2727

28-
```
28+
```yaml
2929
jobs:
3030
perl-versions:
3131
runs-on: ubuntu-latest
32-
name: List perl versions
32+
name: List Perl versions
3333
outputs:
3434
perl-versions: ${{ steps.action.outputs.perl-versions }}
3535
steps:
36-
- name: Perl versions action step
37-
id: action
38-
uses: happy-barney/github-workflows/perl-versions@main
36+
- id: action
37+
uses: perl-actions/perl-versions@v1
3938
with:
40-
since-perl: "v5.20"
39+
since-perl: v5.20
4140

41+
##
42+
## Using perl-versions with perl-tester
43+
##
4244
test:
4345
needs:
4446
- perl-versions
47+
name: "Perl ${{ matrix.perl-version }}"
4548
strategy:
49+
fail-fast: false
4650
matrix:
4751
perl-versions: ${{ fromJson (needs.perl-versions.outputs.perl-versions) }}
52+
container:
53+
image: perldocker/perl-tester:${{ matrix.perl-version }}
54+
steps:
55+
- uses: actions/checkout@v4
56+
- run: perl -V
4857

4958
```
5059

@@ -66,12 +75,12 @@ String containing JSON array with list of Perl versions.
6675

6776
## Usage
6877

69-
```
78+
```yaml
7079
jobs:
7180
perl-versions:
72-
uses: perl-actions/perl-versions/.github/workflows/perl-versions.yml@main
81+
uses: perl-actions/perl-versions@v1
7382
with:
74-
since-perl: 5.10
83+
since-perl: "5.14"
7584

7685
test:
7786
needs:

action.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ outputs:
1313
perl-versions:
1414
description: "JSON containing list of perl versions"
1515
runs:
16-
using: node16
17-
main: perl-versions.js
16+
using: "node20"
17+
main: "dist/index.js"

0 commit comments

Comments
 (0)