-
Notifications
You must be signed in to change notification settings - Fork 216
78 lines (72 loc) · 1.92 KB
/
ci.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
name: CI
on: pull_request
jobs:
mbtiny-dist:
runs-on: ubuntu-latest
container:
image: perl:5.38
steps:
- uses: actions/checkout@v4
- run: cpanm --quiet --notest App::ModuleBuildTiny
- run: mbtiny distdir
- run: echo ./App-perlbrew-*
- uses: actions/upload-artifact@v4
with:
name: App-perlbrew-distdir
path: ./App-perlbrew-*
retention-days: 5
cpanm-dist:
needs: mbtiny-dist
strategy:
matrix:
os: ["ubuntu-latest", "macos-latest", "macos-13"]
version: ["5.40","5.38", "5.18"]
name: cpanm-dist-perl-${{ matrix.version }}-${{ matrix.os }}
runs-on: ubuntu-latest
steps:
- uses: shogo82148/[email protected]
with:
perl-version: ${{ matrix.version }}
- uses: actions/download-artifact@v4
with:
name: App-perlbrew-distdir
- run: echo ./App-perlbrew-*
- run: cpanm --verbose ./App-perlbrew-*
cpanm-dist-in-container:
needs: mbtiny-dist
strategy:
matrix:
version: ["5.41"]
name: cpanm-dist-perl-${{ matrix.version }}
runs-on: ubuntu-latest
container:
image: perl:${{ matrix.version }}
steps:
- uses: actions/download-artifact@v4
with:
name: App-perlbrew-distdir
- run: echo ./App-perlbrew-*
- run: cpanm --verbose ./App-perlbrew-*
e2e:
name: e2e
runs-on: ubuntu-latest
container:
image: perl:5.40
steps:
- uses: actions/checkout@v4
- run: |
apt update
apt install -y zsh
- run: ./test-e2e/run.zsh
e2eMacos:
strategy:
matrix:
os: ["macos-latest", "macos-13"]
name: e2e-${{ matrix.os }}
runs-on: ${{ matrix.os }}
steps:
- uses: shogo82148/[email protected]
with:
perl-version: "5.40"
- uses: actions/checkout@v4
- run: /bin/zsh ./test-e2e/run.zsh