From 49d57c703562a1d107ffd46075b3016b9d445050 Mon Sep 17 00:00:00 2001 From: Arno Kaimbacher Date: Mon, 27 Jan 2025 10:53:02 +0100 Subject: [PATCH] test 19 --- .gitea/workflows/checkReferenceType.yaml | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/.gitea/workflows/checkReferenceType.yaml b/.gitea/workflows/checkReferenceType.yaml index 716e167..54c2910 100644 --- a/.gitea/workflows/checkReferenceType.yaml +++ b/.gitea/workflows/checkReferenceType.yaml @@ -6,16 +6,15 @@ on: - feat/checkReferenceType jobs: - test: + container-job: runs-on: ubuntu-latest # Docker Hub image that `container-job` executes in container: node:20-bullseye services: # Label used to access the service container - mydb: - image: postgres:latest - hostname: mydb + postgres: + image: postgres:latest env: POSTGRES_USER: alice POSTGRES_PASSWORD: iEx4Vj7zBb6 @@ -26,8 +25,7 @@ jobs: --health-cmd pg_isready --health-interval 10s --health-timeout 5s - --health-retries 5 - --container_name mydb + --health-retries 5 steps: - name: Checkout repository @@ -46,13 +44,12 @@ jobs: - name: Set up environment variables env: - POSTGRES_HOST: mydb + POSTGRES_HOST: postgres POSTGRES_PORT: 5432 POSTGRES_PASSWORD: iEx4Vj7zBb6 POSTGRES_USER: alice run: | - echo "DB_CONNECTION=pg" >> .env.test - echo "PG_HOST=mydb" >> .env.test + echo "DB_CONNECTION=pg" >> .env.test echo "PG_PORT=5432" >> .env.test echo "PG_USER=alice" >> .env.test echo "PG_PASSWORD=iEx4Vj7zBb6" >> .env.test