File tree 1 file changed +31
-29
lines changed
1 file changed +31
-29
lines changed Original file line number Diff line number Diff line change 37
37
uses : perl-actions/perl-versions@v1
38
38
with :
39
39
since-perl : v5.20
40
+ with-devel : false
40
41
41
42
# #
42
- # # Using perl-versions with perl-tester
43
+ # # Combining perl-versions with perl-tester
43
44
# #
44
45
test :
45
46
needs :
@@ -54,38 +55,39 @@ jobs:
54
55
steps :
55
56
- uses : actions/checkout@v4
56
57
- run : perl -V
57
-
58
+ # adjust that section to fit your distribution
59
+ - uses : perl-actions/ci-perl-tester-helpers/install-test-helper-deps@main
60
+ - uses : perl-actions/ci-perl-tester-helpers/cpan-install-build-deps@main
61
+ - uses : perl-actions/ci-perl-tester-helpers/build-dist@main
62
+ - uses : perl-actions/ci-perl-tester-helpers/cpan-install-dist-deps@main
63
+ - uses : perl-actions/ci-perl-tester-helpers/test-dist@main
64
+ env :
65
+ AUTHOR_TESTING : 1
58
66
` ` `
59
67
60
- # Reusable workflow
61
-
62
- There is also reusable workflow simplifying call of this action.
63
-
64
- ## Inputs
65
-
66
- ### since-perl
67
-
68
- Forwarded to action.
69
-
70
- ## Outputs
68
+ ## Advanced Usages
71
69
72
- ### perl-version
70
+ ### Altering the values
73
71
74
- String containing JSON array with list of Perl versions.
75
-
76
- ## Usage
72
+ Here is an example to massage the Perl versions to append the string ` -buster` to all `5.\d+` versions. (TIMTODY)
77
73
78
74
` ` ` yaml
79
- jobs :
80
75
perl-versions:
81
- uses : perl-actions/perl-versions@v1
82
- with :
83
- since-perl : " 5.14"
84
-
85
- test :
86
- needs :
87
- - perl-versions
88
- strategy :
89
- matrix :
90
- perl-versions : ${{ fromJson (needs.perl-versions.outputs.perl-versions) }}
91
- ` ` `
76
+ runs-on: ubuntu-latest
77
+ name: List Perl versions
78
+ outputs:
79
+ perl-versions: ${{ steps.massage.outputs.perl-versions }}
80
+ steps:
81
+ - id: action
82
+ uses: perl-actions/perl-versions@v1
83
+ with:
84
+ since-perl: v5.10
85
+ with-devel: true
86
+ - id: massage
87
+ name: add buster
88
+ run: |
89
+ echo '${{ steps.action.outputs.perl-versions }}' > perl.versions
90
+ perl -pi -e 's/"(\d\.\d +)"/"$1-buster"/g' perl.versions
91
+ cat perl.versions
92
+ echo "perl-versions=$(cat perl.versions)" >> $GITHUB_OUTPUT
93
+ ` ` `
You can’t perform that action at this time.
0 commit comments