Checking in changes prior to tagging of version 1.16. #31
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: linux | |
on: | |
push: | |
branches: [ '*' ] | |
pull_request: | |
branches: [ main, dev ] | |
workflow_dispatch: | |
branches: [ '*' ] | |
jobs: | |
perl: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
perl-version: | |
- '5.20' | |
- '5.22' | |
- '5.24' | |
- '5.26' | |
- '5.28' | |
- '5.30' | |
- '5.32' | |
include: | |
- perl-version: '5.34' | |
os: ubuntu-latest | |
release-test: true | |
coverage: true | |
container: | |
image: perl:${{ matrix.perl-version }} | |
steps: | |
- uses: actions/checkout@v2 | |
- run: env | sort | |
- run: perl -V | |
- run: cpanm -n --installdeps . | |
- name: Run release tests | |
if: ${{ matrix.release-test }} | |
run: | | |
cpanm -n Perl::Tidy Test::Code::TidyAll Test::Perl::Critic | |
cpanm -n --installdeps --with-develop . | |
prove -lr t | |
- name: Run tests (no coverage) | |
if: ${{ !matrix.coverage }} | |
run: prove -lr t | |
- name: Run tests (with coverage) | |
if: ${{ matrix.coverage }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
cpanm -n Devel::Cover::Report::Coveralls | |
perl Build.PL && ./Build build && cover -test -report coveralls |