37
37
run : |
38
38
cpm --version
39
39
40
+ # ## ------------------------------------------------
40
41
# ## Install a single module
42
+ # ## ------------------------------------------------
41
43
42
44
one_module :
43
45
runs-on : ubuntu-latest
49
51
with :
50
52
install : " Simple::Accessor"
51
53
54
+ # ## ------------------------------------------------
52
55
# ## Install multiple modules
56
+ # ## ------------------------------------------------
53
57
54
58
multiple_modules :
55
59
runs-on : ubuntu-latest
63
67
Simple::Accessor
64
68
Test::Parallel
65
69
70
+ # ## ------------------------------------------------
66
71
# ## Install modules from a cpanfile
72
+ # ## ------------------------------------------------
67
73
68
74
cpanfile_root :
69
75
runs-on : ubuntu-latest
94
100
global : false
95
101
path : " cpm"
96
102
103
+ # ## ------------------------------------------------
97
104
# ## Install a module and enable tests
105
+ # ## ------------------------------------------------
98
106
99
107
with_tests :
100
108
runs-on : ubuntu-latest
@@ -107,7 +115,9 @@ jobs:
107
115
install : " Simple::Accessor"
108
116
tests : true
109
117
118
+ # ## ------------------------------------------------
110
119
# ## check perl-tester
120
+ # ## ------------------------------------------------
111
121
112
122
perl_tester :
113
123
runs-on : ubuntu-latest
@@ -133,7 +143,9 @@ jobs:
133
143
global : true
134
144
sudo : false
135
145
146
+ # ## ------------------------------------------------
136
147
# ## Use some custom args to install
148
+ # ## ------------------------------------------------
137
149
138
150
with_args :
139
151
runs-on : ubuntu-latest
@@ -148,3 +160,38 @@ jobs:
148
160
with :
149
161
cpanfile : " cpanfile.test"
150
162
args : " --with-recommends --with-suggests"
163
+
164
+ # # ------------------------------------------------
165
+ # # testing with Perl from perl-tester
166
+ # # ------------------------------------------------
167
+ perl :
168
+ runs-on : ubuntu-latest
169
+ name : " perl v${{ matrix.perl-version }}"
170
+
171
+ strategy :
172
+ fail-fast : false
173
+ matrix :
174
+ perl-version :
175
+ - " 5.30"
176
+ - " 5.28"
177
+ # ...
178
+
179
+ container :
180
+ image : perldocker/perl-tester:${{ matrix.perl-version }}
181
+
182
+ steps :
183
+ - name : perl -V
184
+ run : perl -V
185
+
186
+ - uses : actions/checkout@v2
187
+ - name : " install-with-cpm"
188
+
189
+ uses : ./
190
+ with :
191
+ sudo : false
192
+ install : |
193
+ abbreviation
194
+ ACH
195
+ # checking that both modules are installed
196
+ - run : perl -Mabbreviation -e1
197
+ - run : perl -MACH -e1
0 commit comments