From 1c62aa57b611f4dc589e0225b385aa662eee90c6 Mon Sep 17 00:00:00 2001 From: Olga Nemt Date: Fri, 20 Dec 2024 12:19:36 +0500 Subject: [PATCH] =?UTF-8?q?=D0=BF=D1=80=D0=B0=D0=B2=D0=BA=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/test.yaml | 23 +++++++++-------------- DD.Persistence.App/appsettings.Tests.json | 2 +- 2 files changed, 10 insertions(+), 15 deletions(-) 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",