parent
a51f6e1b3b
commit
c13f737f88
@ -23,13 +23,13 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
POSTGRES_USER: ${{ env.POSTGRES_USER }}
|
POSTGRES_USER: ${{ env.POSTGRES_USER }}
|
||||||
POSTGRES_PASSWORD: ${{ env.POSTGRES_PASSWORD }}
|
POSTGRES_PASSWORD: ${{ env.POSTGRES_PASSWORD }}
|
||||||
POSTGRES_HOST: ${{ env.POSTGRES_HOST }}
|
POSTGRES_HOST: persistence-cicd-test-postgres-db
|
||||||
# Set health checks to wait until postgres has started
|
# Set health checks to wait until postgres has started
|
||||||
options: >-
|
options: >-
|
||||||
--health-cmd pg_isready
|
--health-cmd pg_isready
|
||||||
--health-interval 10s
|
--health-interval 10s
|
||||||
--health-timeout 5s
|
--health-timeout 5s
|
||||||
--health-retries 5
|
--health-retries 5
|
||||||
ports:
|
ports:
|
||||||
# Maps tcp port 5432 on service container to the host
|
# Maps tcp port 5432 on service container to the host
|
||||||
- '${{ env.POSTGRES_PORT }}:5432'
|
- '${{ env.POSTGRES_PORT }}:5432'
|
||||||
@ -43,6 +43,6 @@ jobs:
|
|||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- name: Run integration tests
|
- name: Run integration tests
|
||||||
env:
|
env:
|
||||||
POSTGRES_HOST: ${{ env.POSTGRES_HOST }}
|
POSTGRES_HOST: persistence-cicd-test-postgres-db
|
||||||
POSTGRES_PORT: ${{ env.POSTGRES_PORT }}
|
POSTGRES_PORT: ${{ env.POSTGRES_PORT }}
|
||||||
run: dotnet test DD.Persistence.IntegrationTests
|
run: dotnet test DD.Persistence.IntegrationTests
|
||||||
|
Loading…
Reference in New Issue
Block a user