diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 836a370..5dc76e2 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -6,6 +6,9 @@ jobs: build: runs-on: ubuntu-latest + permissions: + checks: write + pull-requests: write defaults: run: working-directory: ./src/dotnet @@ -32,4 +35,15 @@ jobs: - name: Build run: dotnet build --no-restore --configuration Release - name: Test - run: dotnet test --no-build --verbosity normal --configuration Release + run: dotnet test --no-build --verbosity normal --configuration Release --logger trx --results-directory TestResults + - name: Upload test results + uses: actions/upload-artifact@v3 + with: + name: dotnet-results + path: ./src/dotnet/TestResults + if: ${{ always() }} + - name: Publish test results + uses: EnricoMi/publish-unit-test-result-action@v2 + with: + files: ./src/dotnet/TestResults/*.trx + if: ${{ always() }}