File tree Expand file tree Collapse file tree 1 file changed +61
-1
lines changed Expand file tree Collapse file tree 1 file changed +61
-1
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ pre-installed bits:
9
9
* ` Devel::Cover `
10
10
* various testing modules (see ` cpanfile ` in this repo)
11
11
12
- # List of modules
12
+ # List of Perl modules
13
13
14
14
## Available on all Perl Versions
15
15
@@ -75,6 +75,66 @@ perldocker/perl-tester:v5.8
75
75
76
76
## Using the images with GitHub Workflow
77
77
78
+ Here is a sample workflow for Linux running on all Perl version 5.8 to 5.30
79
+ You can save the content in ` .github/workflow/linux.yml ` .
80
+
81
+ Note: this example is using cpm to install the dependencies from a cpanfile.
82
+ You can comment this line or use Dist::Zilla instead for supported Perl versions.
83
+
84
+ ```
85
+ name: linux
86
+
87
+ on:
88
+ push:
89
+ branches:
90
+ - '*'
91
+ tags-ignore:
92
+ - '*'
93
+ pull_request:
94
+
95
+ jobs:
96
+ perl:
97
+ env:
98
+ # some plugins still needs this to run their tests...
99
+ PERL_USE_UNSAFE_INC: 0
100
+ AUTHOR_TESTING: 1
101
+ AUTOMATED_TESTING: 1
102
+ RELEASE_TESTING: 1
103
+
104
+ runs-on: ubuntu-latest
105
+
106
+ strategy:
107
+ fail-fast: false
108
+ matrix:
109
+ perl-version:
110
+ - 'latest'
111
+ - '5.28'
112
+ - '5.26'
113
+ - '5.24'
114
+ - '5.22'
115
+ - '5.20'
116
+ - '5.18'
117
+ - '5.16'
118
+ - '5.14'
119
+ - '5.12'
120
+ - '5.10'
121
+ - '5.8'
122
+
123
+ container:
124
+ image: perldocker/perl-tester:v${{ matrix.perl-version }}
125
+
126
+ steps:
127
+ - uses: actions/checkout@v1
128
+ - name: perl -V
129
+ run: perl -V
130
+ - name: Install Dependencies
131
+ run: cpm install -g --no-test --show-build-log-on-failure --cpanfile cpanfile
132
+ - name: Makefile.PL
133
+ run: perl Makefile.PL
134
+ - name: make test
135
+ run: make test
136
+ ```
137
+
78
138
...
79
139
80
140
## Building Docker images
You can’t perform that action at this time.
0 commit comments