test 8
Some checks failed
CI / test (push) Failing after 48s

This commit is contained in:
Kaimbacher 2025-01-24 18:21:42 +01:00
parent 9c8db14086
commit 887515b333

View file

@ -8,6 +8,19 @@ on:
jobs:
test:
runs-on: ubuntu-latest
services:
mydb:
image: postgres:latest
# container_name: mydb
env:
POSTGRES_USER: alice
POSTGRES_PASSWORD: iEx4Vj7zBb6
POSTGRES_DB: tethys_dev
ports:
# Maps tcp port 5432 on service container to the host
- 5432:5432
# Set health checks to wait until postgres has started
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
steps:
- name: Checkout repository
uses: actions/checkout@v2
@ -25,7 +38,7 @@ jobs:
- name: Set up environment variables
run: echo "DB_CONNECTION=pg" >> .env.test
&& echo "PG_HOST=172.17.0.2" >> .env.test
&& echo "PG_HOST=mydb" >> .env.test
&& echo "PG_PORT=5432" >> .env.test
&& echo "PG_USER=alice" >> .env.test
&& echo "PG_PASSWORD=iEx4Vj7zBb6" >> .env.test