Updated copyright year for GH#7. Thanks to robrwo #36
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Perl | |
on: | |
push: | |
pull_request: | |
jobs: | |
test: | |
strategy: | |
fail-fast: false | |
matrix: | |
runner: [ubuntu-latest, macos-latest, windows-latest] | |
perl: [ '5.32' ] | |
runs-on: ${{matrix.runner}} | |
name: OS ${{matrix.runner}} Perl ${{matrix.perl}} | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up perl | |
uses: shogo82148/actions-setup-perl@v1 | |
with: | |
perl-version: ${{ matrix.perl }} | |
distribution: ${{ ( startsWith( matrix.runner, 'windows-' ) && 'strawberry' ) || 'default' }} | |
- name: Show Perl Version | |
run: | | |
perl -v | |
- name: Install Modules | |
run: | | |
cpanm -v | |
cpanm --installdeps . | |
cpanm Test::CheckManifest | |
# RELEASE_TESTING is not enabled as some of the tests take way too long (more than 30 minutes) | |
- name: Run tests under gmake (on windows) | |
if: ${{ startsWith(matrix.runner, 'windows-') }} | |
run: | | |
perl Makefile.PL | |
gmake | |
gmake test | |
- name: Run tests under make (not windows) | |
if: ${{ ! startsWith(matrix.runner, 'windows-') }} | |
run: | | |
perl Makefile.PL | |
make | |
make test | |
- name: Run release tests | |
env: | |
RELEASE_TESTING: 1 | |
run: | | |
prove t/manifest.t |