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