Skip to content

Commit 18cef1a

Browse files
committed
Use perl-actions/install-with-cpm in GH action
1 parent 728a2e7 commit 18cef1a

File tree

1 file changed

+9
-16
lines changed

1 file changed

+9
-16
lines changed

.github/workflows/test.yml

Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -33,26 +33,19 @@ jobs:
3333
with:
3434
node-version: "18"
3535
- run: npm install -g yarn && yarn install
36-
- name: Install Carton
37-
run: >
38-
curl -sL https://git.io/cpm | perl -
39-
install -g Carton
40-
--show-build-log-on-failure
41-
- name: Install deps
42-
run: >
43-
curl -sL https://git.io/cpm | perl -
44-
install
45-
--cpanfile cpanfile
46-
--resolver ${{ matrix.resolver }}
47-
--show-build-log-on-failure
48-
--local-lib-contained=local
49-
if: success()
36+
- name: Install CPAN deps
37+
uses: perl-actions/install-with-cpm@v1
38+
with:
39+
cpanfile: "cpanfile"
40+
sudo: false
41+
args: >
42+
--resolver ${{ matrix.resolver }}
43+
--show-build-log-on-failure
44+
--local-lib-contained=local
5045
- name: Maybe update cpanfile.snapshot
5146
run: carton
52-
if: success()
5347
- name: Run Tests
5448
run: carton exec prove -lr --jobs 2 t
55-
if: success()
5649
env:
5750
TEST_TIDYALL_VERBOSE: 1
5851
- uses: actions/upload-artifact@v3

0 commit comments

Comments
 (0)