-
-
Notifications
You must be signed in to change notification settings - Fork 6
80 lines (77 loc) · 2.03 KB
/
test-cpan-installer.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
name: CPAN installer
on:
pull_request:
paths:
- ".github/workflows/test-cpan-installer.yml"
- "bin/cpanm"
- "bin/cpm"
- "bin/carton"
- "__test__/**"
- "src/**"
- "package.json"
- "package-lock.json"
- "action.yml"
push:
branches:
- "main"
workflow_dispatch:
jobs:
installer:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
installer:
- cpanm
- cpm
- carton
perl:
- "5.40" # latest version of Perl 5
- "5.8"
distribution:
- "default"
include:
- perl: "5.40"
os: "windows-latest"
installer: "cpanm"
distribution: "strawberry"
- perl: "5.40"
os: "windows-latest"
installer: "cpm"
distribution: "strawberry"
- perl: "5.40"
os: "windows-latest"
installer: "carton"
distribution: "strawberry"
- perl: "5.8"
os: "windows-latest"
installer: "cpanm"
distribution: "strawberry"
- perl: "5.8"
os: "windows-latest"
installer: "cpm"
distribution: "strawberry"
- perl: "5.8"
os: "windows-latest"
installer: "carton"
distribution: "strawberry"
steps:
- name: Checkout
uses: actions/checkout@v4
- name: use the action
uses: ./
with:
perl-version: "${{ matrix.perl }}"
install-modules-with: "${{ matrix.installer }}"
install-modules-args: "--notest"
working-directory: __test__/p5-Test-Module
- name: print the version of Acme::this
run: |
# shellcheck disable=SC2016
perl -MAcme::this -e 'print "$Acme::this::VERSION\n"'
- run: ${{ matrix.installer }} --help
- run: ${{ matrix.installer }} --version