diff --git a/.github/workflows/cd-1.yml b/.github/workflows/cd-1.yml index a85c88b..bf92327 100644 --- a/.github/workflows/cd-1.yml +++ b/.github/workflows/cd-1.yml @@ -121,3 +121,35 @@ jobs: printf '%s\n' "version=$VERSION" >> $GITHUB_OUTPUT printf '%s\n' "packages=$PACKAGES_JSON" >> $GITHUB_OUTPUT + + integration-tests: + needs: validate-source + name: Integration Tests + runs-on: ubuntu-latest + env: + DOTNET_VERSION: ${{ vars.DOTNET_VERSION || '10.0.x' }} + SOLUTION_PATH: ${{ vars.SOLUTION_PATH }} + + steps: + - uses: actions/checkout@v4 + + - name: Setup .NET SDK + uses: actions/setup-dotnet@v4 + with: + dotnet-version: ${{ env.DOTNET_VERSION }} + + - name: Configure GitHub packages + env: + NUGET_AUTH_TOKEN: ${{ secrets.PUBLISH_PAT }} + run: | + dotnet nuget add source \ + "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" \ + --name github \ + --username "${{ github.actor }}" \ + --password "$NUGET_AUTH_TOKEN" \ + --store-password-in-clear-text + + - name: Run integration tests + working-directory: ${{ env.SOLUTION_PATH }}/Integration Tests/ + run: | + dotnet test --configuration Release --verbosity normal \ No newline at end of file