Skip to content

Commit

Permalink
ci: get test coverage working again
Browse files Browse the repository at this point in the history
  • Loading branch information
msimerson committed Jan 16, 2025
1 parent dfe319b commit 874f246
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 13 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/coveralls.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@

on: ["push", "pull_request"]

name: Coveralls

jobs:

coverage:
name: Test Coverage
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: shogo82148/actions-setup-perl@v1
with:
perl-version: 5.38

- run: cpanm --installdeps -n -f .
- run: cpanm --installdeps -n -f Mail::SPF Mail::DMARC GeoIP2 ClamAV::Client Redis Devel::Cover

- name: Run tests
env: HARNESS_PERL_SWITCHES: '-MDevel::Cover=+ignore,^t/'
run: prove -lrv t

- name: Coveralls
uses: coverallsapp/github-action@v2
21 changes: 10 additions & 11 deletions Makefile.PL
Original file line number Diff line number Diff line change
Expand Up @@ -17,25 +17,24 @@ WriteMakefile(
'Net::IP' => 1.26,
'Time::HiRes' => 0,
'IO::Socket::SSL' => 0,
'ClamAV::Client' => 0, # virus/clamdscan
# Dev/Test modules
'Test::More' => 0,
'Test::Output' => 0,
# modules for specific features
'ClamAV::Client' => 0, # virus/clamdscan
'File::NFSLock' => 0,
'File::Tail' => 0, # log/summarize, log/watch
'GeoIP2' => 2,
'Mail::SPF' => 1,
'Mail::DKIM' => 0.40,
'Mail::DMARC' => 0,
'File::Tail' => 0, # log/summarize, log/watch
'Time::TAI64' => 0, # log2sql
'Redis' => 0,
# 'DBI' => 0, # auth_vpopmail_sql and
# 'DBD::mysql' => 0, # log2sql
# 'DBIx::Simple' => 0, # log2sql
'GeoIP2' => 2,
'Mail::SpamAssassin' => 0,
'Math::Complex' => 0, # geodesic distance in Geo::IP
'PerlIO::gzip' => 0, # gunzip GeoIP databases
'File::NFSLock' => 0,
'Time::TAI64' => 0, # log2sql
'Redis' => 0,
# 'DBI' => 0, # auth_vpopmail_sql and
# 'DBD::mysql' => 0, # log2sql
# 'DBIx::Simple' => 0, # log2sql
'Math::Complex' => 0, # geodesic distance in Geo::IP
},
ABSTRACT => 'Flexible smtpd daemon written in Perl',
AUTHOR => 'Ask Bjoern Hansen <[email protected]>',
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,6 @@ the logfile on a webserver and include a reference to it in the mail.

[cov-img]: https://coveralls.io/repos/smtpd/qpsmtpd/badge.svg
[cov-url]: https://coveralls.io/r/smtpd/qpsmtpd
[ci-img]: https://travis-ci.org/smtpd/qpsmtpd.svg?branch=master
[ci-url]: https://travis-ci.org/smtpd/qpsmtpd
[ci-img]: https://github.com/smtpd/qpsmtpd/actions/workflows/ci.yml/badge.svg
[ci-url]: https://github.com/smtpd/qpsmtpd/actions/workflows/ci.yml

0 comments on commit 874f246

Please sign in to comment.