File tree Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Original file line number Diff line number Diff 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/install-cpm@v1.2
56+ with :
57+ cpanfile : ' cpanfile'
58+ sudo : false
59+ - run : perl Makefile.PL
60+ - run : make test
61+ ` ` `
62+
2763## Inputs
2864
2965### ` install`
You can’t perform that action at this time.
0 commit comments