diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a5c3cb85..5a6257dd 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -61,16 +61,17 @@ jobs: - name: Test solution [Debug] with code coverage if: ${{ startsWith(matrix.os, 'ubuntu') }} working-directory: src - run: dotnet test --no-restore --no-build -p:CollectCoverage=true -p:DoesNotReturnAttribute="DoesNotReturnAttribute" + run: dotnet test --no-restore --no-build -p:CollectCoverage=true -p:CoverletOutputFormat=opencover -p:CoverletOutput=../.coverage/ -p:DoesNotReturnAttribute="DoesNotReturnAttribute" - name: Test solution [Debug] without code coverage if: ${{ startsWith(matrix.os, 'windows') }} working-directory: src run: dotnet test --no-restore --no-build - name: Upload coverage to codecov if: ${{ startsWith(matrix.os, 'ubuntu') }} - uses: codecov/codecov-action@v3 + uses: codecov/codecov-action@v4 with: - files: .coverage/GraphQLParser.Tests/coverage.net8.opencover.xml + token: ${{ secrets.CODECOV_TOKEN }} + files: src/.coverage/*.opencover.xml buildcheck: needs: diff --git a/src/Directory.Build.targets b/src/Directory.Build.targets deleted file mode 100644 index 6535dc36..00000000 --- a/src/Directory.Build.targets +++ /dev/null @@ -1,8 +0,0 @@ - - - - opencover - $(MSBuildThisFileDirectory)../.coverage/$(AssemblyName)/ - - - diff --git a/src/GraphQLParser.sln b/src/GraphQLParser.sln index 4da8fb09..7170f4b9 100644 --- a/src/GraphQLParser.sln +++ b/src/GraphQLParser.sln @@ -14,7 +14,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution ..\.editorconfig = ..\.editorconfig ..\.gitignore = ..\.gitignore Directory.Build.props = Directory.Build.props - Directory.Build.targets = Directory.Build.targets graphql.snk = graphql.snk ..\LICENSE.md = ..\LICENSE.md ..\assets\logo.64x64.png = ..\assets\logo.64x64.png