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" },