ci: get test coverage working again #20
Workflow file for this run
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: Coveralls | |
on: ["push", "pull_request"] | |
jobs: | |
coverage: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: shogo82148/actions-setup-perl@v1 | |
with: | |
perl-version: 5.38 | |
- name: install cpanm and modules | |
uses: perl-actions/install-with-cpanm@v1 | |
with: | |
install: | | |
Devel::Cover | |
sudo: true | |
- name: install cpanm and modules | |
uses: perl-actions/install-with-cpanm@v1 | |
with: | |
install: | | |
GeoIP2 | |
Time::TAI64 | |
Mail::DMARC | |
tests: false | |
sudo: false | |
- run: cpanm --installdeps -n -f Mail::SPF Mail::DMARC GeoIP2 ClamAV::Client Redis | |
- run: cpanm --installdeps -n -f . | |
- name: Run tests with coverage | |
env: | |
HARNESS_PERL_SWITCHES: '-MDevel::Cover=+ignore,^t/' | |
run: prove -lrv t | |
- name: Coveralls | |
uses: coverallsapp/github-action@v2 |