Skip to content

Commit 5b16904

Browse files
committed
Adjust README
1 parent 0abe854 commit 5b16904

File tree

1 file changed

+61
-1
lines changed

1 file changed

+61
-1
lines changed

README.md

Lines changed: 61 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ pre-installed bits:
99
* `Devel::Cover`
1010
* various testing modules (see `cpanfile` in this repo)
1111

12-
# List of modules
12+
# List of Perl modules
1313

1414
## Available on all Perl Versions
1515

@@ -75,6 +75,66 @@ perldocker/perl-tester:v5.8
7575

7676
## Using the images with GitHub Workflow
7777

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+
78138
...
79139

80140
## Building Docker images

0 commit comments

Comments
 (0)