diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index 7c2062c..42d484a 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -1,4 +1,5 @@ # brian's standard GitHub Actions macOS config for Perl 5 modules +# version 20220307.001 # https://github.com/briandfoy/github_actions # https://github.com/features/actions # This file is licensed under the Artistic License 2.0 @@ -10,6 +11,7 @@ on: - '**' - '!**windows**' - '!**linux**' + - '!**release**' tags-ignore: # I tag release pushes but those should have already been tested - 'release-*' @@ -19,6 +21,7 @@ on: - '.appveyor.yml' - '.github/workflows/ubuntu.yml' - '.github/workflows/windows.yml' + - '.github/workflows/release.yml' - '.gitignore' - '.releaserc' - 'Changes' @@ -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. @@ -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. @@ -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 @@ -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