(partially tested) fix pg tests, add postgres service in workflows

This commit is contained in:
Lawrence, Rendall
2022-06-20 17:18:47 +03:00
parent 0564dfce4b
commit 8c12cd9b35
4 changed files with 25 additions and 13 deletions

View File

@@ -26,6 +26,18 @@ jobs:
redis:
image: "eqalpha/keydb"
ports: [ "6379:6379" ]
postgres:
image: "postgres:latest"
env:
POSTGRES_DB: test
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
ports: [ "5432:5432" ]
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: "actions/checkout@v3"
- uses: "actions/setup-go@v3"