Skip to content

Bump actions/checkout from 6.0.3 to 7.0.0 in the major-updates group #76

Bump actions/checkout from 6.0.3 to 7.0.0 in the major-updates group

Bump actions/checkout from 6.0.3 to 7.0.0 in the major-updates group #76

---
name: dzil build and test
on:
push:
branches:
- master
pull_request:
branches:
- "*"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build-job:
name: Build distribution
runs-on: ubuntu-latest
container:
image: perldocker/perl-tester:5.42
steps:
- uses: actions/checkout@v7.0.0
- name: install aspell
run: apt-get install aspell aspell-en
- name: Run Tests
env:
AUTHOR_TESTING: 1
AUTOMATED_TESTING: 1
EXTENDED_TESTING: 1
RELEASE_TESTING: 1
run: upgrade-perl-helpers && auto-build-and-test-dist
- uses: actions/upload-artifact@v7
with:
name: build_dir
path: build_dir
coverage-job:
name: Coverage
needs: build-job
runs-on: ubuntu-latest
container:
image: perldocker/perl-tester:5.42
steps:
- uses: actions/checkout@v7.0.0 # codecov wants to be inside a Git repository
- uses: actions/download-artifact@v8.0.1
with:
name: build_dir
path: .
- name: Install deps and test
run: cpan-install-dist-deps --with-develop && test-dist
env:
CODECOV_TOKEN: ${{secrets.CODECOV_TOKEN}}
test-linux:
name: "${{ matrix.perl-version }} on Linux"
needs: build-job
runs-on: ubuntu-latest
container:
image: "perldocker/perl-tester:${{ matrix.perl-version }}"
strategy:
fail-fast: false
matrix:
perl-version:
- "5.8"
- "5.10"
- "5.12"
- "5.14"
- "5.16"
- "5.18"
- "5.20"
- "5.22"
- "5.24"
- "5.26"
- "5.28"
- "5.30"
- "5.32"
- "5.34"
- "5.36"
- "5.38"
- "5.40"
- "5.42"
steps:
- uses: actions/checkout@v7.0.0
- uses: actions/download-artifact@v8.0.1
with:
name: build_dir
path: .
- name: Install deps and test
run: cpan-install-dist-deps && test-dist
test-macos:
name: ${{ matrix.perl-version }} on macos-latest
needs: test-linux
runs-on: macos-latest
strategy:
fail-fast: false
matrix:
perl-version:
- "5.24"
- "5.26"
- "5.28"
- "5.30"
- "5.32"
- "5.34"
- "5.36"
- "5.38"
- "5.40"
- "5.42"
steps:
- name: Set Up Perl
uses: shogo82148/actions-setup-perl@v1
with:
perl-version: ${{ matrix.perl-version }}
- uses: actions/download-artifact@v8.0.1
with:
name: build_dir
path: .
- uses: perl-actions/setup-cpm@v1
with:
version: compat
- name: install deps using cpm
run: cpm install -g --cpanfile cpanfile --with-suggests --with-test
- run: prove -lr t
test-windows:
name: ${{ matrix.perl-version }} on windows-latest
needs: test-linux
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
perl-version:
- "5.24"
- "5.26"
- "5.28"
- "5.30"
- "5.32"
steps:
- name: Set Up Perl
uses: shogo82148/actions-setup-perl@v1
with:
perl-version: ${{ matrix.perl-version }}
distribution: strawberry # this option only used on Windows
- uses: actions/download-artifact@v8.0.1
with:
name: build_dir
path: .
# cpm/setup-cpm is not used on Windows: cpm shells out to the system tar
# to unpack distributions, and the bsdtar bundled with Strawberry Perl
# 5.24/5.26 corrupts gzipped CPAN tarballs ("bad header checksum").
# cpanm unpacks with pure-Perl Archive::Tar, which works on every
# Strawberry release, so use it for the Windows dependency install.
- name: install deps using cpanm
run: cpanm --installdeps --notest --with-suggests --with-test .
- run: cpanm --testonly -v .