diff --git a/.github/workflows/coveralls.yml b/.github/workflows/coveralls.yml new file mode 100644 index 00000000..e9526d9d --- /dev/null +++ b/.github/workflows/coveralls.yml @@ -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 diff --git a/Makefile.PL b/Makefile.PL index 1662631e..17de096e 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -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 ', diff --git a/README.md b/README.md index cf34eb9e..f7f67f02 100644 --- a/README.md +++ b/README.md @@ -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