Skip to content

push coverage to Coveralls #3

push coverage to Coveralls

push coverage to Coveralls #3

Workflow file for this run

name: 'Unit Tests'
on:
push:
branches:
- master
jobs:
linux:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
perl-version:
- '5.36'
- '5.16'
include:
- perl-version: '5.36'
os: ubuntu-latest
coverage: true
container:
image: perldocker/perl-tester:${{ matrix.perl-version }}
steps:
- uses: actions/checkout@main
with:
submodules: recursive
- run: perl -V
- run: cpanm --notest --installdeps --verbose .
- run: perl Build.PL
- run: ./Build
- name: Run Tests (no coverage)
if: ${{ !matrix.coverage }}
run: prove -wlvmb t
- name: Run Tests (with coverage)
if: ${{ matrix.coverage }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
cpanm -n Devel::Cover::Report::Coveralls
cover -test -report Coveralls