From 967c7a69c8f5e7f905dd86d0143bfac21db8e445 Mon Sep 17 00:00:00 2001 From: brian d foy Date: Sat, 27 Aug 2022 09:04:09 -0400 Subject: [PATCH] Update workflows --- .github/workflows/linux.yml | 16 ++++++++++++---- .github/workflows/macos.yml | 13 ++++++++++--- .github/workflows/windows.yml | 2 +- 3 files changed, 23 insertions(+), 8 deletions(-) diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 400c2de..76cd8c4 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -1,6 +1,6 @@ # brian's standard GitHub Actions Ubuntu config for Perl 5 modules -# version 20220125.002 -# 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 @@ -19,8 +19,10 @@ on: # 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' @@ -34,8 +36,7 @@ jobs: strategy: matrix: os: - - ubuntu-18.04 - - ubuntu-20.04 + - ubuntu-22.04 perl-version: - '5.14' - '5.16' @@ -47,6 +48,7 @@ jobs: - '5.28' - '5.30' - '5.32' + - '5.34' - 'latest' container: image: perl:${{ matrix.perl-version }} @@ -83,6 +85,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. diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index 4649e0f..5bb1b85 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -1,6 +1,6 @@ # brian's standard GitHub Actions macOS config for Perl 5 modules -# version 20220125.002 -# 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 @@ -19,8 +19,9 @@ on: # 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' @@ -66,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. diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 2d89abd..bcc556a 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -22,7 +22,7 @@ on: - '.gitattributes' - '.github/workflows/release.yml' - '.github/workflows/macos.yml' - - '.github/workflows/ubuntu.yml' + - '.github/workflows/linux.yml' - '.gitignore' - '.releaserc' - 'Changes'