Skip to content

Commit

Permalink
GitHub Actions: update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
rjbs committed May 2, 2024
1 parent d339016 commit fa555cb
Showing 1 changed file with 13 additions and 21 deletions.
34 changes: 13 additions & 21 deletions .github/workflows/multiperl-test.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: "multiperl test"
on: [ push, pull_request ]
on:
push:
branches: "*"
tags-ignore: "*"
pull_request: ~

# FUTURE ENHANCEMENT(s):
# * install faster (see below)
Expand All @@ -13,7 +17,7 @@ jobs:
fail-fast: false
steps:
- name: Check out repo
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Install cpanminus
run: |
curl https://cpanmin.us/ > /tmp/cpanm
Expand All @@ -25,14 +29,16 @@ jobs:
# installing via cpanm that could, instead, be installed from apt. I
# may do that later, but for now, it's fine! -- rjbs, 2023-01-07
run: |
dzil authordeps --missing | /tmp/cpanm --notest -S
dzil listdeps --author --missing | /tmp/cpanm --notest -S
dzil authordeps --missing > /tmp/deps-phase-1.txt
/tmp/cpanm --notest -S < /tmp/deps-phase-1.txt
dzil listdeps --author --missing >> /tmp/deps-phase-2.txt
/tmp/cpanm --notest -S < /tmp/deps-phase-2.txt
- name: Build tarball
run: |
dzil build --in Dist-To-Test
tar zcvf Dist-To-Test.tar.gz Dist-To-Test
- name: Upload tarball
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: Dist-To-Test.tar.gz
path: Dist-To-Test.tar.gz
Expand All @@ -50,28 +56,14 @@ jobs:
strategy:
fail-fast: false
matrix:
perl-version:
- 'latest'
- '5.36'
- '5.34'
- '5.32'
- '5.30'
- '5.28'
- '5.26'
- '5.24'
- '5.22'
- '5.20'
- '5.18'
- '5.16'
- '5.14'
- '5.12'
perl-version: [ "devel", "5.38", "5.36", "5.34", "5.32", "5.30", "5.28", "5.26", "5.24", "5.22", "5.20", "5.18", "5.16", "5.14", "5.12" ]

container:
image: perldocker/perl-tester:${{ matrix.perl-version }}

steps:
- name: Download tarball
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: Dist-To-Test.tar.gz
- name: Extract tarball
Expand Down

0 comments on commit fa555cb

Please sign in to comment.