From fa555cb4e217fe9a6b0ee2ffcd2f4549a45a5765 Mon Sep 17 00:00:00 2001 From: Ricardo Signes Date: Thu, 2 May 2024 17:14:11 -0400 Subject: [PATCH] GitHub Actions: update workflow --- .github/workflows/multiperl-test.yml | 34 +++++++++++----------------- 1 file changed, 13 insertions(+), 21 deletions(-) diff --git a/.github/workflows/multiperl-test.yml b/.github/workflows/multiperl-test.yml index 25267f7..37fbf95 100644 --- a/.github/workflows/multiperl-test.yml +++ b/.github/workflows/multiperl-test.yml @@ -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) @@ -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 @@ -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 @@ -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