-
Notifications
You must be signed in to change notification settings - Fork 9
75 lines (70 loc) · 2.43 KB
/
docker-compose-integration-test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
---
name: docker-compose integration tests
on: [push]
env:
RUN_COMPOSE: "0"
jobs:
lint:
name: "lint (perl v${{ matrix.perl-version }})"
runs-on: ubuntu-latest
strategy:
matrix:
perl-version: [ '5.32', '5.30', '5.28' ]
container:
image: perldocker/perl-tester:${{ matrix.perl-version }}
steps:
- uses: actions/checkout@v2
- name: Install dependencies
uses: perl-actions/install-with-cpanm@v1
with:
cpanfile: "cpanfile"
sudo: false
- name: Lint with perlcritic
continue-on-error: true
run: perlcritic postfwd-anti-spam.plugin
integration-test-postgresql-geoip2:
name: "integration test postgresql + geoip v2 (perl v${{matrix.perl-version}})"
strategy:
matrix:
perl-version: [ '5.32', '5.30', '5.28' ]
runs-on: ubuntu-latest
env:
DATABASES: "postgresql"
POSTFWD_ANTISPAM_MAIN_CONFIG_PATH: "/etc/postfwd/01-dev-anti-spam-postgres-geoip2.conf"
steps:
- uses: actions/checkout@v2
- name: docker-compose up
run: docker-compose -f tests/compose-dev-postgresql.yml
up
--build
-d
&& sleep 10
- name: run integration tests
run: ./tests/integration-compose-test-geoip2.sh
- name: read test logs
run: docker-compose -f tests/compose-dev-postgresql.yml logs postfwd-geoip-antispam
- name: docker-compose down
run: docker-compose -f tests/compose-dev-postgresql.yml down
integration-test-mysql-geoip2:
name: "integration test mysql + geoip v2 (perl v${{matrix.perl-version}})"
strategy:
matrix:
perl-version: [ '5.32', '5.30', '5.28' ]
runs-on: ubuntu-latest
env:
DATABASES: "mysql"
POSTFWD_ANTISPAM_MAIN_CONFIG_PATH: "/etc/postfwd/02-dev-anti-spam-mysql-geoip2.conf"
steps:
- uses: actions/checkout@v2
- name: docker-compose up
run: docker-compose -f tests/compose-dev-mysql.yml
up
--build
-d
&& sleep 10
- name: run integration tests
run: ./tests/integration-compose-test-geoip2.sh
- name: read test logs
run: docker-compose -f tests/compose-dev-mysql.yml logs postfwd-geoip-antispam
- name: docker-compose down
run: docker-compose -f tests/compose-dev-mysql.yml down