From 44d715a1a4def13a007d9655743668ead53761ab Mon Sep 17 00:00:00 2001 From: Oliver Kurz Date: Thu, 2 Jul 2026 13:27:22 +0200 Subject: [PATCH] feat(ci): use supported Perl versions in CI Motivation: Ensure CI workflows run tests against stable, supported Perl versions. Design Choices: Replace ancient, unsupported Perl versions with 5.20+ releases. Update the setup step to conditionally install CI dependencies only on the latest Perl version to prevent build and test runtime failures. Benefits: Ensures backward compatibility is tested on older supported Perl runtimes while keeping CI setup fast, clean, and reliable. Related issue: https://github.com/openSUSE/Mojo-IOLoop-ReadWriteProcess/pull/82 --- .github/workflows/ci-tests.yaml | 8 ++++++-- .github/workflows/perltidy.yml | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci-tests.yaml b/.github/workflows/ci-tests.yaml index 38b7e4d..1cfbb85 100644 --- a/.github/workflows/ci-tests.yaml +++ b/.github/workflows/ci-tests.yaml @@ -7,11 +7,11 @@ jobs: matrix: os: [ubuntu-latest] perl: - - '5.16' - '5.20' - '5.26' - '5.30' - '5.34' + - '5.36' - '5.38' - '5.40' - latest @@ -30,7 +30,11 @@ jobs: run: perl -V - name: Set up perl run: | - cpanm --with-feature=ci --installdeps --notest . + if [ "${{ matrix.perl }}" = "latest" ] && [ "${{ matrix.os }}" != "macos-latest" ]; then + cpanm --with-feature=ci --installdeps --notest . + else + cpanm --installdeps --notest . + fi - name: Run tests if: matrix.perl != 'latest' || matrix.os == 'macos-latest' run: | diff --git a/.github/workflows/perltidy.yml b/.github/workflows/perltidy.yml index e1647ee..f736169 100644 --- a/.github/workflows/perltidy.yml +++ b/.github/workflows/perltidy.yml @@ -10,7 +10,7 @@ jobs: perltidy: runs-on: ubuntu-latest container: - image: perl:5.32 + image: perl:5.40 steps: - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 - name: perl -V