Skip to content

Commit f482512

Browse files
committed
Smoke more OS for clone
1 parent d21e36b commit f482512

File tree

3 files changed

+57
-6
lines changed

3 files changed

+57
-6
lines changed

.github/cpanfile.test

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
requires 'ExtUtils::MakeMaker';
2+
requires 'File::Copy';
3+
4+
on 'test' => sub {
5+
requires 'Test::More';
6+
requires 'B::COW';
7+
};

.github/workflows/test.yml

Lines changed: 49 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,18 @@ jobs:
2222
AUTHOR_TESTING: 1
2323
AUTOMATED_TESTING: 1
2424
RELEASE_TESTING: 1
25-
PERL_CARTON_PATH: $GITHUB_WORKSPACE/local
2625

2726
steps:
2827
- uses: actions/checkout@v4
2928
- run: perl -V
30-
- name: install deps using cpanm
31-
uses: perl-actions/install-with-cpanm@v1
29+
- name: install deps using cpm
30+
uses: perl-actions/install-with-cpm@v1
3231
with:
3332
sudo: false
34-
args: --sudo --installdeps .
33+
global: false
34+
cpanfile: ".github/cpanfile.test"
35+
- name: Set PERL5LIB to local lib
36+
run: echo "PERL5LIB=$(pwd)/local/lib/perl5" >> $GITHUB_ENV
3537
- run: perl Makefile.PL
3638
- run: make
3739
- run: make test
@@ -72,10 +74,12 @@ jobs:
7274
- uses: actions/checkout@v4
7375
- run: perl -V
7476
- name: install deps using cpanm
75-
uses: perl-actions/install-with-cpanm@v1
77+
uses: perl-actions/install-with-cpm@v1
7678
with:
7779
sudo: false
78-
args: -v --installdeps .
80+
cpanfile: ".github/cpanfile.test"
81+
- name: Set PERL5LIB to local lib
82+
run: echo "PERL5LIB=$(pwd)/local/lib/perl5" >> $GITHUB_ENV
7983
- run: perl Makefile.PL
8084
- run: make
8185
- run: make test
@@ -84,3 +88,42 @@ jobs:
8488
AUTOMATED_TESTING: 1
8589
RELEASE_TESTING: 1
8690

91+
92+
distro-matrix:
93+
94+
runs-on: ubuntu-latest
95+
needs: [ubuntu-latest]
96+
name: "test distro ${{ matrix.os-version }}"
97+
98+
strategy:
99+
fail-fast: false
100+
matrix:
101+
os-version:
102+
- debian:buster
103+
- debian:bullseye
104+
- debian:bookworm
105+
- ubuntu:20.04
106+
107+
container: ${{ matrix.os-version }}
108+
steps:
109+
- uses: actions/checkout@v4
110+
- name: Install dependencies
111+
run: |
112+
(apt-get update &&
113+
apt-get install -y perl make gcc sudo curl) ||
114+
(yum install --skip-broken -y openssl perl make gcc sudo curl)
115+
- run: perl -V
116+
- name: install deps using cpm
117+
uses: perl-actions/install-with-cpm@v1
118+
with:
119+
sudo: false
120+
cpanfile: ".github/cpanfile.test"
121+
- name: Set PERL5LIB to local lib
122+
run: echo "PERL5LIB=$(pwd)/local/lib/perl5" >> $GITHUB_ENV
123+
- run: perl Makefile.PL
124+
- run: make
125+
- run: make test
126+
env:
127+
AUTHOR_TESTING: 1
128+
AUTOMATED_TESTING: 1
129+
RELEASE_TESTING: 1

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@
77
/Makefile.old
88
/blib/
99
/pm_to_blib
10+
local

0 commit comments

Comments
 (0)