diff --git a/.github/workflows/deep-source.yml b/.github/workflows/deep-source.yml index 1e12fdc..957da6b 100644 --- a/.github/workflows/deep-source.yml +++ b/.github/workflows/deep-source.yml @@ -52,7 +52,7 @@ jobs: uses: actions/upload-artifact@v3.1.2 with: name: coverage - path: Tests\GuiStracini.Mandae.Tests\bin\Release + path: Tests\GuiStracini.Mandae.Tests\bin\Release\coverage.cobertura.xml deep-source: name: Deep Source Coverage report @@ -61,6 +61,10 @@ jobs: steps: + - uses: actions/checkout@v3 + with: + ref: ${{ github.event.pull_request.head.sha }} + - name: Download artifact test coverage uses: actions/download-artifact@v3 with: @@ -69,13 +73,7 @@ jobs: - name: Install DeepSource scanner run: curl https://deepsource.io/cli | sh - - name: Setup .NET - uses: actions/setup-dotnet@v3 - with: - dotnet-version: '7.0.x' - - name: Build and analyze env: DEEPSOURCE_DSN: ${{ secrets.DEEPSOURCE_DSN }} - run: | - ./bin/deepsource report --analyzer test-coverage --key csharp --value-file coverage.cobertura.xml + run: ./bin/deepsource report --analyzer test-coverage --key csharp --value-file coverage.cobertura.xml