From 370223795f32595b418103ce182920ecfee48a99 Mon Sep 17 00:00:00 2001 From: Olga Nemt Date: Wed, 18 Dec 2024 12:06:35 +0500 Subject: [PATCH] =?UTF-8?q?=D1=82=D0=B5=D1=81=D1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/test.yaml | 25 +++++++++++++++-------- DD.Persistence.App/appsettings.Tests.json | 4 ++-- 2 files changed, 18 insertions(+), 11 deletions(-) diff --git a/.gitea/workflows/test.yaml b/.gitea/workflows/test.yaml index 66e1c83..9b1ab66 100644 --- a/.gitea/workflows/test.yaml +++ b/.gitea/workflows/test.yaml @@ -9,7 +9,14 @@ jobs: steps: - name: Checkout Codebase uses: actions/checkout@v4 + + - name: Setup dotnet + uses: actions/setup-dotnet@v4 + with: + dotnet-version: 8.0.x + - name: Check out repository code + uses: actions/checkout@v4 - name: Configure and install postgres run: | @@ -27,14 +34,14 @@ jobs: # - name: Install dependencies # run: cd ${{ gitea.workspace }} && pdm install - - # - name: Run Django tests - # env: - # DB_HOST: 127.0.0.1 - # DB_NAME: gastronaut - # DB_USER: postgres - # DB_PASSWORD: test123 - # run: | - # cd ${{ gitea.workspace }} && pdm run manage.py test \ No newline at end of file + + - name: Run integration tests + env: + DB_HOST: localhost + DB_USER: postgres + DB_PASSWORD: postgres + + run: | + dotnet test DD.Persistence.IntegrationTests \ No newline at end of file diff --git a/DD.Persistence.App/appsettings.Tests.json b/DD.Persistence.App/appsettings.Tests.json index 9a07d74..b997398 100644 --- a/DD.Persistence.App/appsettings.Tests.json +++ b/DD.Persistence.App/appsettings.Tests.json @@ -1,7 +1,7 @@ { "DbConnection": { - "Host": "persistence-cicd-test-postgres-db", - "Port": 5442, + "Host": "localhost", + "Port": 5432, "Username": "postgres", "Password": "postgres" },