Skip to content

Commit

Permalink
use perl-actions/perl-versions and use perl-tester
Browse files Browse the repository at this point in the history
  • Loading branch information
atoomic committed Apr 27, 2024
1 parent 4e5468b commit bef4fa8
Showing 1 changed file with 54 additions and 29 deletions.
83 changes: 54 additions & 29 deletions .github/workflows/testsuite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,62 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- run: perl -V
- run: perl Makefile.PL
- run: make regen
- name: revert timestamp update
run: "git checkout parts/inc/version ||:"
- run: make
- name: Run Tests
run: make test
- run: make test

perl-versions:
runs-on: ubuntu-latest
name: List Perl versions
outputs:
perl-versions: ${{ steps.action.outputs.perl-versions }}
steps:
- id: action
uses: perl-actions/perl-versions@v1
with:
since-perl: v5.8
with-devel: true

linux:
name: "Perl v${{ matrix.perl-version }}"
runs-on: ubuntu-latest

needs:
- ubuntu
- perl-versions

env:
PERL_USE_UNSAFE_INC: 0
AUTHOR_TESTING: 1
AUTOMATED_TESTING: 1
RELEASE_TESTING: 1
PERL_CARTON_PATH: $GITHUB_WORKSPACE/local

strategy:
fail-fast: false
matrix:
perl-version: ${{ fromJson (needs.perl-versions.outputs.perl-versions) }}

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

steps:
- uses: actions/checkout@v4
- run: perl -V
- run: perl Makefile.PL
- run: make regen
- name: revert timestamp update
run: "git checkout parts/inc/version ||:"
- run: make
- run: make test

linux-p56:
name: "${{ matrix.perl-version }}"
runs-on: ubuntu-latest
needs: [ubuntu]

Expand All @@ -45,22 +90,6 @@ jobs:
fail-fast: false
matrix:
perl-version:
- "perl:latest"
- "perl:5.36"
- "perl:5.34"
- "perl:5.32"
- "perl:5.30"
- "perl:5.28"
- "perl:5.26"
- "perl:5.24"
- "perl:5.22"
- "perl:5.20"
- "perl:5.18"
- "perl:5.16"
- "perl:5.14"
- "perl:5.12"
- "perl:5.10"
- "perl:5.8"
- "perldocker/perl:5.6.2"
- "perldocker/perl:5.6.1"
- "perldocker/perl:5.6.0"
Expand All @@ -69,16 +98,14 @@ jobs:
image: ${{ matrix.perl-version }}

steps:
# use v1 for git diff later
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- run: perl -V
- run: perl Makefile.PL
- run: make regen
- name: revert timestamp update
run: "git checkout parts/inc/version ||:"
- run: make
- name: Run Tests
run: make test
- run: make test

macOS:
runs-on: macOS-latest
Expand All @@ -92,7 +119,7 @@ jobs:
PERL_CARTON_PATH: $GITHUB_WORKSPACE/local

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Perl
run: brew install perl
- run: perl -V
Expand All @@ -101,22 +128,20 @@ jobs:
- name: revert timestamp update
run: "git checkout parts/inc/version ||:"
- run: make
- name: Run Tests
run: make test
- run: make test

windows:

runs-on: windows-latest
needs: [ubuntu]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Perl
run: |
choco install strawberryperl
echo "C:\strawberry\c\bin;C:\strawberry\perl\site\bin;C:\strawberry\perl\bin" >> $GITHUB_PATH
- run: perl -V
- run: perl Makefile.PL
- run: make
- name: Run Tests
run: make test
- run: make test

0 comments on commit bef4fa8

Please sign in to comment.