Skip to content

Commit c904560

Browse files
authored
Merge pull request #7 from toddr-bot/koan.toddr.bot/fix-issue-6
fix: add cpanfile and use cpm to install Module::Build in CI
2 parents 417d467 + a9a5352 commit c904560

3 files changed

Lines changed: 29 additions & 0 deletions

File tree

.github/workflows/testsuite.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ jobs:
2222
- uses: actions/checkout@v4
2323
- name: perl -V
2424
run: perl -V
25+
- name: Install Dependencies
26+
uses: perl-actions/install-with-cpm@v1
27+
with:
28+
cpanfile: "cpanfile"
2529
- name: Build.PL
2630
run: perl Build.PL
2731
- name: Build
@@ -42,6 +46,10 @@ jobs:
4246
- uses: actions/checkout@v4
4347
- name: perl -V
4448
run: perl -V
49+
- name: Install Dependencies
50+
uses: perl-actions/install-with-cpm@v1
51+
with:
52+
cpanfile: "cpanfile"
4553
- name: Build.PL
4654
run: perl Build.PL
4755
- name: Build disttest
@@ -83,6 +91,11 @@ jobs:
8391
- uses: actions/checkout@v4
8492
- name: perl -V
8593
run: perl -V
94+
- name: Install Dependencies
95+
uses: perl-actions/install-with-cpm@v1
96+
with:
97+
sudo: false
98+
cpanfile: "cpanfile"
8699
- run: perl Build.PL
87100
- run: ./Build
88101
- run: ./Build test
@@ -103,6 +116,11 @@ jobs:
103116
run: brew install perl
104117
- name: perl -V
105118
run: perl -V
119+
- name: Install Dependencies
120+
uses: perl-actions/install-with-cpm@v1
121+
with:
122+
sudo: false
123+
cpanfile: "cpanfile"
106124
- run: perl Build.PL
107125
- run: ./Build
108126
- run: ./Build test
@@ -124,6 +142,11 @@ jobs:
124142
Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
125143
- name: perl -V
126144
run: perl -V
145+
- name: Install Dependencies
146+
uses: perl-actions/install-with-cpm@v1
147+
with:
148+
sudo: false
149+
cpanfile: "cpanfile"
127150
- name: perl Build.PL
128151
run: perl Build.PL
129152
- name: Build

MANIFEST

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ Copying
44
lib/Safe/Hole.pm
55
lib/Safe/Hole.xs
66
Build.PL
7+
cpanfile
78
MANIFEST
89
META.yml
910
t/00-load.t

cpanfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
requires 'Module::Build' => '0.35';
2+
3+
on "test" => sub {
4+
requires "Test::More" => "0.40";
5+
};

0 commit comments

Comments
 (0)