Travis-CI -> Github Actions #1
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: CI Tests | ||
on: [push, pull_request] | ||
jobs: | ||
tests: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
- version: [5.30, 5.32, 5.34, 5.36] | ||
Check failure on line 11 in .github/workflows/ci.yml GitHub Actions / CI TestsInvalid workflow file
|
||
env: PERL_CPANM_OPT="--notest --force --skip-satisfied" | ||
name: Perl ${{ matrix.version }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up perl | ||
uses: shogo82148/actions-setup-perl@v1 | ||
with: | ||
perl-version: ${{ matrix.version }} | ||
install-modules-with: cpanm | ||
- name: Install module | ||
run: | | ||
cpanm Dist::Zilla | ||
dzil authordeps | xargs cpanm | ||
export tmpbuild=$(mktemp --directory) | ||
dzil build --in $tmpbuild | ||
cpanm --quiet --notest Devel::Cover::Report::Coveralls | ||
dzil listdeps | xargs cpanm | ||
dzil test --author | ||
- name: Tests | ||
run: | | ||
PERL5OPT=-MDevel::Cover=-coverage,statement,branch,condition,path,subroutine prove -lrsv t | ||
- name: Coverall report | ||
run: cover -report coveralls |