ci: get test coverage working again (#328)
- doc(README): update test status badge URLs - ci(coveralls): added GHA
This commit is contained in:
parent
dfe319b82b
commit
df5b04d857
39
.github/workflows/coveralls.yml
vendored
Normal file
39
.github/workflows/coveralls.yml
vendored
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
name: Coveralls
|
||||||
|
|
||||||
|
on: ["push", "pull_request"]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
|
||||||
|
coverage:
|
||||||
|
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 10
|
||||||
|
fetch-tags: true
|
||||||
|
|
||||||
|
- name: Install Perl
|
||||||
|
uses: shogo82148/actions-setup-perl@v1
|
||||||
|
with:
|
||||||
|
perl-version: 5.38
|
||||||
|
|
||||||
|
- run: cpanm --installdeps -n -f Mail::SPF Mail::DMARC GeoIP2
|
||||||
|
|
||||||
|
- name: Coveralls
|
||||||
|
uses: mihyaeru21/actions-report-coveralls-perl@v1
|
||||||
|
|
||||||
|
# - name: install Devel::Cover
|
||||||
|
# uses: perl-actions/install-with-cpanm@v1
|
||||||
|
# with:
|
||||||
|
# sudo: true
|
||||||
|
# install: |
|
||||||
|
# Devel::Cover
|
||||||
|
|
||||||
|
- run: cpanm --installdeps -n -f ClamAV::Client Redis Time::TAI64
|
||||||
|
- run: cpanm --installdeps -n -f .
|
||||||
|
|
||||||
|
- name: Run tests with coverage
|
||||||
|
env:
|
||||||
|
HARNESS_PERL_SWITCHES: '-MDevel::Cover=+ignore,^t/'
|
||||||
|
run: prove -lrv t
|
11
Makefile.PL
11
Makefile.PL
@ -17,25 +17,24 @@ WriteMakefile(
|
|||||||
'Net::IP' => 1.26,
|
'Net::IP' => 1.26,
|
||||||
'Time::HiRes' => 0,
|
'Time::HiRes' => 0,
|
||||||
'IO::Socket::SSL' => 0,
|
'IO::Socket::SSL' => 0,
|
||||||
'ClamAV::Client' => 0, # virus/clamdscan
|
|
||||||
# Dev/Test modules
|
# Dev/Test modules
|
||||||
'Test::More' => 0,
|
'Test::More' => 0,
|
||||||
'Test::Output' => 0,
|
'Test::Output' => 0,
|
||||||
# modules for specific features
|
# 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::SPF' => 1,
|
||||||
'Mail::DKIM' => 0.40,
|
'Mail::DKIM' => 0.40,
|
||||||
'Mail::DMARC' => 0,
|
'Mail::DMARC' => 0,
|
||||||
'File::Tail' => 0, # log/summarize, log/watch
|
'Mail::SpamAssassin' => 0,
|
||||||
'Time::TAI64' => 0, # log2sql
|
'Time::TAI64' => 0, # log2sql
|
||||||
'Redis' => 0,
|
'Redis' => 0,
|
||||||
# 'DBI' => 0, # auth_vpopmail_sql and
|
# 'DBI' => 0, # auth_vpopmail_sql and
|
||||||
# 'DBD::mysql' => 0, # log2sql
|
# 'DBD::mysql' => 0, # log2sql
|
||||||
# 'DBIx::Simple' => 0, # log2sql
|
# 'DBIx::Simple' => 0, # log2sql
|
||||||
'GeoIP2' => 2,
|
|
||||||
'Mail::SpamAssassin' => 0,
|
|
||||||
'Math::Complex' => 0, # geodesic distance in Geo::IP
|
'Math::Complex' => 0, # geodesic distance in Geo::IP
|
||||||
'PerlIO::gzip' => 0, # gunzip GeoIP databases
|
|
||||||
'File::NFSLock' => 0,
|
|
||||||
},
|
},
|
||||||
ABSTRACT => 'Flexible smtpd daemon written in Perl',
|
ABSTRACT => 'Flexible smtpd daemon written in Perl',
|
||||||
AUTHOR => 'Ask Bjoern Hansen <ask@develooper.com>',
|
AUTHOR => 'Ask Bjoern Hansen <ask@develooper.com>',
|
||||||
|
@ -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-img]: https://coveralls.io/repos/smtpd/qpsmtpd/badge.svg
|
||||||
[cov-url]: https://coveralls.io/r/smtpd/qpsmtpd
|
[cov-url]: https://coveralls.io/r/smtpd/qpsmtpd
|
||||||
[ci-img]: https://travis-ci.org/smtpd/qpsmtpd.svg?branch=master
|
[ci-img]: https://github.com/smtpd/qpsmtpd/actions/workflows/ci.yml/badge.svg
|
||||||
[ci-url]: https://travis-ci.org/smtpd/qpsmtpd
|
[ci-url]: https://github.com/smtpd/qpsmtpd/actions/workflows/ci.yml
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user