add github action for integration tests

This commit is contained in:
Tim Möhlmann
2023-04-25 18:11:04 +03:00
parent a22b58f1c0
commit 79084089ea
20 changed files with 196 additions and 31 deletions
@@ -0,0 +1,24 @@
version: '3.8'
services:
cockroach:
extends:
file: '../localhost/docker-compose.yaml'
service: 'db'
postgres:
restart: 'always'
image: 'postgres:15'
environment:
- POSTGRES_USER=zitadel
- PGUSER=zitadel
- POSTGRES_DB=zitadel
- POSTGRES_HOST_AUTH_METHOD=trust
healthcheck:
test: ["CMD-SHELL", "pg_isready"]
interval: '10s'
timeout: '30s'
retries: 5
start_period: '20s'
ports:
- 5432:5432