File tree Expand file tree Collapse file tree 2 files changed +17
-5
lines changed Expand file tree Collapse file tree 2 files changed +17
-5
lines changed Original file line number Diff line number Diff line change @@ -40,16 +40,22 @@ jobs:
40
40
zabbix :
41
41
- version : " 4.0"
42
42
suffix : " -latest"
43
+ postgress_version : " 15-alpine"
43
44
- version : " 5.0"
44
45
suffix : " -latest"
46
+ postgress_version : " 15-alpine"
45
47
- version : " 6.0"
46
48
suffix : " -latest"
49
+ postgress_version : " 15-alpine"
47
50
- version : " 6.2"
48
51
suffix : " -latest"
52
+ postgress_version : " 15-alpine"
49
53
- version : " 6.4"
50
54
suffix : " -latest"
51
- - version : " trunk" # will become 7.0
52
- suffix : " "
55
+ postgress_version : " 16-alpine"
56
+ - version : " 7.0"
57
+ suffix : " -latest"
58
+ postgress_version : " 16-alpine"
53
59
54
60
name : " Zabbix ${{ matrix.zabbix.version }} Integration Tests"
55
61
@@ -67,16 +73,22 @@ jobs:
67
73
env :
68
74
ZBX_VERSION : " ${{ matrix.zabbix.version }}"
69
75
ZBX_VERSION_SUFFIX : " ${{ matrix.zabbix.suffix }}"
76
+ POSTGRES_VERSION : " ${{ matrix.zabbix.postgress_version }}"
70
77
71
78
- name : Wait for Zabbix server to become available
72
-
79
+ id : wait_for_server
80
+
73
81
with :
74
82
resource : tcp:localhost:10051
75
- timeout : 900000
83
+ timeout : 300000
76
84
interval : 10000
77
85
delay : 60000
78
86
log : true
79
87
88
+ - name : Server logs
89
+ if : always() && steps.wait_for_server.outcome == 'failure'
90
+ run : docker compose -f "docker-compose.yml" logs server
91
+
80
92
- name : Test
81
93
run : go test -v "./test/integration/..."
82
94
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ services:
11
11
- POSTGRES_DB=zabbix
12
12
13
13
database :
14
- image : postgres
14
+ image : postgres:${POSTGRES_VERSION:-alpine}
15
15
environment :
16
16
- POSTGRES_USER=zabbix
17
17
- POSTGRES_PASSWORD=zabbix
You can’t perform that action at this time.
0 commit comments