From 9ad0168827c731d41405af1d2d63dc596bef47ff Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 3 Feb 2024 16:05:36 +0300 Subject: [PATCH] Bump codecov/codecov-action from 3 to 4 (#389) --- .github/workflows/test.yml | 7 ++++--- src/Directory.Build.targets | 8 -------- src/GraphQLParser.sln | 1 - 3 files changed, 4 insertions(+), 12 deletions(-) delete mode 100644 src/Directory.Build.targets 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