entc/integration: test with Postgres 15 (#3152)

This commit is contained in:
Pedro Henrique
2022-12-07 06:55:06 -03:00
committed by GitHub
parent b3ef46d768
commit 0f20a3d007
3 changed files with 36 additions and 1 deletions

View File

@@ -220,6 +220,18 @@ jobs:
--health-interval 10s
--health-timeout 5s
--health-retries 5
postgres15:
image: postgres:15
env:
POSTGRES_DB: test
POSTGRES_PASSWORD: pass
ports:
- 5435:5432
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
gremlin-server:
image: entgo/gremlin-server
ports:
@@ -386,6 +398,18 @@ jobs:
--health-interval 10s
--health-timeout 5s
--health-retries 5
postgres15:
image: postgres:15
env:
POSTGRES_DB: test
POSTGRES_PASSWORD: pass
ports:
- 5435:5432
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
gremlin-server:
image: entgo/gremlin-server
ports:

View File

@@ -127,6 +127,17 @@ services:
ports:
- 5434:5432
postgres15:
platform: linux/amd64
image: postgres:15
environment:
POSTGRES_DB: test
POSTGRES_PASSWORD: pass
healthcheck:
test: pg_isready -U postgres
ports:
- 5435:5432
gremlin:
platform: linux/amd64
image: entgo/gremlin-server

View File

@@ -98,7 +98,7 @@ func TestMaria(t *testing.T) {
}
func TestPostgres(t *testing.T) {
for version, port := range map[string]int{"10": 5430, "11": 5431, "12": 5432, "13": 5433, "14": 5434} {
for version, port := range map[string]int{"10": 5430, "11": 5431, "12": 5432, "13": 5433, "14": 5434, "15": 5435} {
addr := fmt.Sprintf("host=localhost port=%d user=postgres dbname=test password=pass sslmode=disable", port)
t.Run(version, func(t *testing.T) {
t.Parallel()