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.
24
24
# perl: 'perl'
25
25
```
26
26
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
+
27
63
## Inputs
28
64
29
65
### ` install`
You can’t perform that action at this time.
0 commit comments