From ab4829aa98149628ad9f7c75646e219172871b33 Mon Sep 17 00:00:00 2001 From: brian d foy Date: Tue, 2 Mar 2021 11:55:43 -0500 Subject: [PATCH] Add coverage tests to Github Actions --- .github/workflows/linux.yml | 8 ++++++++ .github/workflows/macos.yml | 8 ++++++++ .github/workflows/windows.yml | 8 ++++++++ 3 files changed, 24 insertions(+) diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 575dd42..76a1a6d 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -75,3 +75,11 @@ jobs: run: | perl Makefile.PL make disttest + - name: Setup coverage tests + run: | + cpan -M https://www.cpan.org -T Devel::Cover Devel::Cover::Report::Coveralls + - name: Run coverage tests + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + cover -test -report coveralls diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index eb59a56..61f29c2 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -54,3 +54,11 @@ jobs: run: | perl Makefile.PL make disttest + - name: Setup coverage tests + run: | + cpan -M https://www.cpan.org -T Devel::Cover Devel::Cover::Report::Coveralls + - name: Run coverage tests + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + cover -test -report coveralls diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 6180a6b..620bc53 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -55,3 +55,11 @@ jobs: run: | perl Makefile.PL make disttest + - name: Setup coverage tests + run: | + cpan -M https://www.cpan.org -T Devel::Cover Devel::Cover::Report::Coveralls + - name: Run coverage tests + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + cover -test -report coveralls