Skip to content

Commit ecc5d3c

Browse files
committed
This is getting frustrating
1 parent 945fe38 commit ecc5d3c

1 file changed

Lines changed: 26 additions & 23 deletions

File tree

.github/actions/cpan-test/action.yml

Lines changed: 26 additions & 23 deletions
Original file line numberDiff line numberDiff 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: |

0 commit comments

Comments
 (0)