Skip to content

Commit

Permalink
Update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
briandfoy committed Aug 27, 2022
1 parent c540a07 commit 967c7a6
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 8 deletions.
16 changes: 12 additions & 4 deletions .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
Expand All @@ -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'
Expand All @@ -34,8 +36,7 @@ jobs:
strategy:
matrix:
os:
- ubuntu-18.04
- ubuntu-20.04
- ubuntu-22.04
perl-version:
- '5.14'
- '5.16'
Expand All @@ -47,6 +48,7 @@ jobs:
- '5.28'
- '5.30'
- '5.32'
- '5.34'
- 'latest'
container:
image: perl:${{ matrix.perl-version }}
Expand Down Expand Up @@ -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.
Expand Down
13 changes: 10 additions & 3 deletions .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
Expand All @@ -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'
Expand Down Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/windows.yml
Expand Up @@ -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'
Expand Down

0 comments on commit 967c7a6

Please sign in to comment.