Update linux.yml #76
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: tests | |
on: | |
- push | |
jobs: | |
perl: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest] | |
perl-version: | |
- '5.8' | |
- '5.12' | |
include: | |
- perl-version: '5.38' | |
coverage: true | |
container: | |
image: perl:${{ matrix.perl-version }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Configure git | |
run: git config --system --add safe.directory '*' | |
- name: perl -V | |
run: perl -V | |
- name: Fix ExtUtils::MakeMaker (for Perl 5.16 and 5.18) | |
run: cpanm -n App::cpanminus ExtUtils::MakeMaker | |
- name: Install Dependencies | |
run: | | |
curl -sL https://cpanmin.us/ | perl - -nq --with-develop --installdeps . | |
cpanm -n Test::Pod Test::Pod::Coverage TAP::Formatter::GitHubActions | |
- name: Run Tests | |
run: prove --merge --formatter TAP::Formatter::GitHubActions -l t | |
- name: Run tests (with coverage) | |
if: ${{ matrix.coverage }} | |
env: | |
GITHUB_ACTIONS: true | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} | |
run: | | |
cpanm -n Devel::Cover::Report::Coveralls | |
cover -test -report Coveralls |