Skip to content

Commit c66b2a9

Browse files
committed
Add a sample GitHub workflow to se install-cpm
1 parent d9c03ca commit c66b2a9

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

README.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,42 @@ This action installs 'cpm' as root so you can then use it in your workflow.
2424
# perl: 'perl'
2525
```
2626

27+
## Using it in a GitHub workflow
28+
29+
Here is a sample integration using install-cpm action
30+
to test your Perl Module using multiple Perl versions.
31+
32+
```yaml
33+
# .github/workflows/linux.yml
34+
jobs:
35+
perl_tester:
36+
runs-on: ubuntu-latest
37+
name: 'perl v${{ matrix.perl-version }}'
38+
39+
strategy:
40+
fail-fast: false
41+
matrix:
42+
perl-version:
43+
- '5.30'
44+
- '5.28'
45+
- '5.26'
46+
# ...
47+
# - '5.8'
48+
49+
container:
50+
image: perldocker/perl-tester:${{ matrix.perl-version }}
51+
52+
steps:
53+
- uses: actions/checkout@v2
54+
- name: uses install-cpm
55+
uses: perl-actions/[email protected]
56+
with:
57+
cpanfile: 'cpanfile'
58+
sudo: false
59+
- run: perl Makefile.PL
60+
- run: make test
61+
```
62+
2763
## Inputs
2864
2965
### `install`

0 commit comments

Comments
 (0)