tests: add pg in ci
All checks were successful
ci/woodpecker/push/test Pipeline was successful
ci/woodpecker/push/build Pipeline was successful

This commit is contained in:
Simon Vieille 2024-03-31 22:28:45 +02:00
parent 9c4b7ea525
commit e6b5d2160a
Signed by: deblan
GPG key ID: 579388D585F70417

View file

@ -31,7 +31,7 @@ steps:
"Fill PostgresSQL":
image: *postgres_image
commands:
- psql -U postgres -d test < tests/postgres_data.sql
- psql -U postgres -h service-postgres -d test < tests/postgres_data.sql
"Run tests":
image: *golang_image
@ -43,6 +43,7 @@ services:
image: *postgres_image
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=test
- POSTGRES_HOST_AUTH_METHOD=trust