File tree Expand file tree Collapse file tree
.github/actions/cpan-test Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -29,30 +29,33 @@ runs:
2929 run : perl -V
3030 shell : ${{ startsWith(inputs.os, 'windows') && 'powershell' || 'bash' }}
3131
32- - name : Upgrade CPAN toolchain (metadata + installer)
33- shell : ${{ startsWith(inputs.os, 'windows') && 'powershell' || 'bash' }}
32+ - name : Upgrade CPAN toolchain (metadata + installer) [Windows]
33+ if : startsWith(inputs.os, 'windows')
34+ shell : pwsh
35+ run : |
36+ cpanm --notest --quiet --reinstall `
37+ ExtUtils::MakeMaker `
38+ Module::Build `
39+ CPAN::Meta `
40+ CPAN::Meta::Requirements `
41+ CPAN::Meta::YAML `
42+ Parse::CPAN::Meta `
43+ JSON::PP `
44+ Test::Harness
45+
46+ - name : Upgrade CPAN toolchain (metadata + installer) [Unix]
47+ if : ${{ !startsWith(inputs.os, 'windows') }}
48+ shell : bash
3449 run : |
35- if ("${{ startsWith(inputs.os, 'windows') }}" -eq "True") {
36- cpanm --notest --quiet --reinstall `
37- ExtUtils::MakeMaker `
38- Module::Build `
39- CPAN::Meta `
40- CPAN::Meta::Requirements `
41- CPAN::Meta::YAML `
42- Parse::CPAN::Meta `
43- JSON::PP `
44- Test::Harness
45- } else {
46- cpanm --notest --quiet --reinstall \
47- ExtUtils::MakeMaker \
48- Module::Build \
49- CPAN::Meta \
50- CPAN::Meta::Requirements \
51- CPAN::Meta::YAML \
52- Parse::CPAN::Meta \
53- JSON::PP \
54- Test::Harness
55- }
50+ cpanm --notest --quiet --reinstall \
51+ ExtUtils::MakeMaker \
52+ Module::Build \
53+ CPAN::Meta \
54+ CPAN::Meta::Requirements \
55+ CPAN::Meta::YAML \
56+ Parse::CPAN::Meta \
57+ JSON::PP \
58+ Test::Harness
5659
5760 - name : Install modules
5861 run : |
You can’t perform that action at this time.
0 commit comments