From 764febbc4f5050de73266746358982f05dc5112d Mon Sep 17 00:00:00 2001 From: jvolkening Date: Thu, 7 Dec 2023 22:39:36 -0600 Subject: [PATCH] push coverage to Coveralls --- .github/workflows/tests.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index c7bbbc4..6027809 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -15,6 +15,10 @@ jobs: perl-version: - '5.36' - '5.16' + include: + - perl-version: '5.36' + os: ubuntu-latest + coverage: true container: image: perldocker/perl-tester:${{ matrix.perl-version }} @@ -27,4 +31,13 @@ jobs: - run: cpanm --notest --installdeps --verbose . - run: perl Build.PL - run: ./Build - - run: prove -wlvmb t + - 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