diff --git a/.gitea/workflows/integrationTests.yaml b/.gitea/workflows/integrationTests.yaml index f5069b9..6ffe4eb 100644 --- a/.gitea/workflows/integrationTests.yaml +++ b/.gitea/workflows/integrationTests.yaml @@ -1,6 +1,9 @@ name: Unit tests run-name: ${{ gitea.actor }} is testing -on: push +on: + push: + branches: + - master jobs: test: @@ -32,7 +35,13 @@ jobs: uses: actions/setup-dotnet@v4 with: dotnet-version: 9.0.x + - name: Add gitea as nuget source + run: dotnet nuget add source --name gitea --username publisher --password ${{ secrets.PUBLISHER_PASSWORD }} --store-password-in-clear-text https://git.ddrilling.ru/api/packages/DDrilling/nuget/index.json - name: Check out repository code uses: actions/checkout@v4 - name: Run integration tests run: dotnet test DD.Persistence.IntegrationTests + - name: Pack Persistence Client + run: dotnet pack DD.Persistence.Client/DD.Persistence.Client.csproj -c Debug -o ./artifacts + - name: Publish Persistence Client Package + run: dotnet nuget push ./artifacts/DD.Persistence.Client.*.nupkg --source gitea --skip-duplicate