Skip to content

Commit

Permalink
Update macos workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
briandfoy committed Aug 27, 2022
1 parent 06e6469 commit 72b9bd0
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions .github/workflows/macos.yml
@@ -1,5 +1,6 @@
# brian's standard GitHub Actions macOS 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: macos
Expand All @@ -10,15 +11,17 @@ on:
- '**'
- '!**windows**'
- '!**linux**'
- '!**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'
- '.github/workflows/ubuntu.yml'
- '.gitattributes'
- '.github/workflows/windows.yml'
- '.github/workflows/release.yml'
- '.gitignore'
- '.releaserc'
- 'Changes'
Expand Down Expand Up @@ -52,8 +55,8 @@ jobs:
- name: Prepare cpan
run: |
openssl version
cpan -M http://www.cpan.org -T IO::Socket::SSL LWP::Protocol::https
cpan -M https://www.cpan.org -T ExtUtils::MakeMaker
cpan -M http://www.cpan.org -T IO::Socket::SSL 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 @@ -64,6 +67,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 @@ -82,6 +91,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 @@ -90,4 +100,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 72b9bd0

Please sign in to comment.