build and test #20
Workflow file for this run
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: build and test | |
run-name: build and test | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
perl-version: | |
- '5.38' | |
- '5.36' | |
- '5.34' | |
- '5.32' | |
- '5.30' | |
container: | |
image: perldocker/perl-tester:${{ matrix.perl-version }} | |
steps: | |
- uses: actions/checkout@main | |
- run: perl -V | |
- run: | | |
cpm install -g --no-test Dist::Zilla Dist::Zilla::App::Command::cover ExtUtils::MakeMaker | |
name: Install Dzil | |
- name: Install dzil author dependencies | |
run: | | |
cpm install --no-test -g \ | |
-w 2 \ | |
--mirror=http://cpan.cpantesters.org/ $(dzil authordeps --missing) | |
- name: Install dist deps | |
run: | | |
cpanm -n --installdeps . | |
dzil listdeps --author --missing --cpanm-versions | xargs cpanm -n | |
- run: dzil smoke --release --author && dzil cover -test -report codecov && dzil xtest |