Skip to content

Commit

Permalink
Merge pull request #7 from briandfoy/linux-update
Browse files Browse the repository at this point in the history
Update linux workflow (18.04 deprecated)
  • Loading branch information
briandfoy committed Aug 26, 2022
2 parents 2919ea3 + de38041 commit 24b0f07
Showing 1 changed file with 17 additions and 6 deletions.
23 changes: 17 additions & 6 deletions .github/workflows/linux.yml
@@ -1,5 +1,6 @@
# brian's standard GitHub Actions Ubuntu config for Perl 5 modules
# https://github.com/briandfoy/github_actions
# version 20220825.001
# https://github.com/briandfoy/github_workflows
# https://github.com/features/actions
# This file is licensed under the Artistic License 2.0
name: ubuntu
Expand All @@ -10,15 +11,18 @@ on:
- '**'
- '!**windows**'
- '!**macos**'
- '!**release**'
tags-ignore:
# I tag release pushes but those should have already been tested
- 'release-*'
paths-ignore:
# list all the files which are irrelevant to the tests
# non-code, support files, docs, etc
- '.appveyor.yml'
- '.gitattributes'
- '.github/workflows/macos.yml'
- '.github/workflows/windows.yml'
- '.github/workflows/release.yml'
- '.gitignore'
- '.releaserc'
- 'Changes'
Expand All @@ -32,8 +36,7 @@ jobs:
strategy:
matrix:
os:
- ubuntu-18.04
- ubuntu-20.04
- ubuntu-22.04
perl-version:
- '5.8'
- '5.10'
Expand All @@ -48,8 +51,8 @@ jobs:
- '5.28'
- '5.30'
- '5.32'
- '5.34'
- 'latest'

container:
image: perl:${{ matrix.perl-version }}
steps:
Expand All @@ -73,8 +76,8 @@ jobs:
- name: Install cpanm and multiple modules
run: |
curl -L https://cpanmin.us | perl - App::cpanminus
cpanm --notest IO::Socket::SSL App::Cpan ExtUtils::MakeMaker HTTP::Tiny
cpan -M https://www.cpan.org -T ExtUtils::MakeMaker
cpanm --notest IO::Socket::SSL App::Cpan HTTP::Tiny
cpan -M https://www.cpan.org -T ExtUtils::MakeMaker Test::Manifest
# Install the dependencies, again not testing them. This installs the
# module in the current directory, so we end up installing the module,
# but that's not a big deal.
Expand All @@ -85,6 +88,12 @@ jobs:
run: |
perl Makefile.PL
make test
# Run author tests, but only if there's an xt/ directory
- name: Author tests
if: hashFiles('xt') != ''
run: |
cpan -M https://www.cpan.org -T Test::CPAN::Changes
prove -r -b xt
# Running tests in parallel should be faster, but it's also more
# tricky in cases where different tests share a feature, such as a
# file they want to write to. Parallel tests can stomp on each other.
Expand All @@ -103,6 +112,7 @@ jobs:
run: |
perl Makefile.PL
make disttest
make clean
# And, coverage reports, but only under 5.10 and later since modern
# Devel::Cover instances don't work with 5.8
- name: Run coverage tests
Expand All @@ -111,4 +121,5 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
cpan -M https://www.cpan.org -T Devel::Cover Devel::Cover::Report::Coveralls
perl Makefile.PL
cover -test -report coveralls

0 comments on commit 24b0f07

Please sign in to comment.