Updating Artistic License URL. Thanks to ppisar for GH#12 #60
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 | |
- name: Run tests under gmake (on windows) | |
if: ${{ startsWith(matrix.runner, 'windows-') }} | |
env: | |
RELEASE_TESTING: 1 | |
run: | | |
perl Makefile.PL | |
gmake | |
gmake test | |
gmake install | |
gmake test | |
- name: Run tests under make (not windows) | |
if: ${{ ! startsWith(matrix.runner, 'windows-') }} | |
env: | |
RELEASE_TESTING: 1 | |
run: | | |
perl Makefile.PL | |
make | |
make test | |
make install | |
make test | |