diff --git a/.gitea/workflows/test.yaml b/.gitea/workflows/test.yaml index f0565ac..73261a0 100644 --- a/.gitea/workflows/test.yaml +++ b/.gitea/workflows/test.yaml @@ -5,12 +5,12 @@ on: push jobs: test: runs-on: ubuntu-latest - # container: node + container: node # Service containers to run with `runner-job` services: # Label used to access the service container - postgres_test_12345678987654321_qqq_www: + postgres: # Docker Hub image image: postgres # Provide the password for postgres @@ -28,16 +28,11 @@ jobs: - 5442:5432 steps: - - name: Build and test - uses: microsoft/dotnet + - name: Setup dotnet + uses: actions/setup-dotnet@v4 with: - target: build - load: true - # - name: Setup dotnet - # uses: actions/setup-dotnet@v4 - # with: - # dotnet-version: 8.0.x - # - name: Check out repository code - # uses: actions/checkout@v4 - # - name: Run integration tests - # run: dotnet test DD.Persistence.IntegrationTests + dotnet-version: 8.0.x + - name: Check out repository code + uses: actions/checkout@v4 + - name: Run integration tests + run: dotnet test DD.Persistence.IntegrationTests diff --git a/DD.Persistence.App/appsettings.Tests.json b/DD.Persistence.App/appsettings.Tests.json index 4389444..72c43d3 100644 --- a/DD.Persistence.App/appsettings.Tests.json +++ b/DD.Persistence.App/appsettings.Tests.json @@ -1,6 +1,6 @@ { "DbConnection": { - "Host": "postgres_test_12345678987654321_qqq_www", + "Host": "postgres", "Port": 5432, "Database": "persistence", "Username": "postgres",