mirror of
https://github.com/ent/ent.git
synced 2026-04-28 05:30:56 +03:00
entc/integration: test with Postgres 15 (#3152)
This commit is contained in:
24
.github/workflows/ci.yml
vendored
24
.github/workflows/ci.yml
vendored
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user