-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: working with Github Actions (#324)
- chore: update package metadata - tests: delete dspam, disable DMARC, earlytalker, geoip, SPF
- Loading branch information
Showing
15 changed files
with
86 additions
and
162 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: CI Tests | ||
|
||
on: | ||
push: | ||
pull_request: | ||
|
||
jobs: | ||
test: | ||
strategy: | ||
matrix: | ||
os: ["ubuntu-latest"] | ||
perl: ["5.16", "5.32"] | ||
fail-fast: false | ||
runs-on: ubuntu-latest | ||
services: | ||
redis: | ||
image: redis | ||
ports: | ||
- 6379:6379 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 10 | ||
fetch-tags: true | ||
- uses: shogo82148/actions-setup-perl@v1 | ||
with: | ||
perl-version: ${{ matrix.perl }} | ||
- run: cpanm --installdeps -n -f . | ||
- run: cpanm --installdeps -n -f Mail::SPF Mail::DMARC GeoIP2 ClamAV::Client Redis | ||
- run: prove -lv t |
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
This file was deleted.
Oops, something went wrong.
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,19 +22,20 @@ WriteMakefile( | |
'Test::More' => 0, | ||
'Test::Output' => 0, | ||
# modules for specific features | ||
'Mail::DKIM' => 0.40, | ||
'File::Tail' => 0, # log/summarize, log/watch | ||
'Time::TAI64' => 0, # log2sql | ||
# 'DBI' => 0, # auth_vpopmail_sql and | ||
# 'DBD::mysql' => 0, # log2sql | ||
# 'DBIx::Simple' => 0, # log2sql | ||
# modules that cause Travis build tests to fail | ||
# 'Mail::SpamAssassin' => 0, | ||
# 'GeoIP2' => 2, | ||
# 'Geo::IP' => 1, | ||
# 'Math::Complex' => 0, # geodesic distance in Geo::IP | ||
# 'PerlIO::gzip' => 0, # gunzip GeoIP databases | ||
# 'Mail::SPF' => 0, | ||
'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 | ||
'Geo::IP' => 1, | ||
'Mail::SpamAssassin' => 0, | ||
'Math::Complex' => 0, # geodesic distance in Geo::IP | ||
'PerlIO::gzip' => 0, # gunzip GeoIP databases | ||
'File::NFSLock' => 0, | ||
}, | ||
ABSTRACT => 'Flexible smtpd daemon written in Perl', | ||
AUTHOR => 'Ask Bjoern Hansen <[email protected]>', | ||
|
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
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,26 +7,17 @@ use_ok('Test::Qpsmtpd'); | |
ok(my ($smtpd, $conn) = Test::Qpsmtpd->new_conn(), "get new connection"); | ||
is(($smtpd->command('EHLO localhost'))[0], 250, 'EHLO localhost'); | ||
|
||
is(($smtpd->command('MAIL FROM:<[email protected]>'))[0], | ||
250, 'MAIL FROM:<[email protected]>'); | ||
is($smtpd->transaction->sender->address, '[email protected]', | ||
'got the right sender'); | ||
is(($smtpd->command('MAIL FROM:<[email protected]>'))[0], 250, 'MAIL FROM:<[email protected]>'); | ||
is($smtpd->transaction->sender->address, '[email protected]', 'got the right sender'); | ||
|
||
is(($smtpd->command('MAIL FROM:<ask @perl.org>'))[0], | ||
250, 'MAIL FROM:<ask @perl.org>'); | ||
is($smtpd->transaction->sender->address, | ||
'ask @perl.org', | ||
'got the right sender'); | ||
is(($smtpd->command('MAIL FROM:<ask @perl.org>'))[0], 250, 'MAIL FROM:<ask @perl.org>'); | ||
is($smtpd->transaction->sender->address, 'ask @perl.org', 'got the right sender'); | ||
|
||
is(($smtpd->command('MAIL FROM:[email protected]'))[0], | ||
250, 'MAIL FROM:[email protected]'); | ||
is($smtpd->transaction->sender->format, | ||
'<[email protected]>', 'got the right sender'); | ||
is(($smtpd->command('MAIL FROM:[email protected]'))[0], 250, 'MAIL FROM:[email protected]'); | ||
is($smtpd->transaction->sender->format, '<[email protected]>', 'got the right sender'); | ||
|
||
is(($smtpd->command('MAIL FROM:ask@[1.2.3.4]'))[0], | ||
250, 'MAIL FROM:ask@[1.2.3.4]'); | ||
is($smtpd->transaction->sender->format, | ||
'<ask@[1.2.3.4]>', 'got the right sender'); | ||
is(($smtpd->command('MAIL FROM:ask@[1.2.3.4]'))[0], 250, 'MAIL FROM:ask@[1.2.3.4]'); | ||
is($smtpd->transaction->sender->format, '<ask@[1.2.3.4]>', 'got the right sender'); | ||
|
||
my $command = 'MAIL FROM:<[email protected]> SIZE=1230'; | ||
is(($smtpd->command($command))[0], 250, $command); | ||
|
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
Oops, something went wrong.