From 8f5bbf0b44970cc9501c616866b3f0398f60882b Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 1 Feb 2024 11:25:58 +0000 Subject: [PATCH 1/3] Bump codecov/codecov-action from 3 to 4 Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 3 to 4. - [Release notes](https://github.com/codecov/codecov-action/releases) - [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md) - [Commits](https://github.com/codecov/codecov-action/compare/v3...v4) --- updated-dependencies: - dependency-name: codecov/codecov-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a5c3cb85..9b2d17ae 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -68,7 +68,7 @@ jobs: 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 From cc770f1b608edf15b8cf9b2359cecf82566d911a Mon Sep 17 00:00:00 2001 From: Ivan Maximov Date: Sat, 3 Feb 2024 15:54:43 +0300 Subject: [PATCH 2/3] Update test.yml --- .github/workflows/test.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9b2d17ae..4eb5d794 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -70,6 +70,7 @@ jobs: if: ${{ startsWith(matrix.os, 'ubuntu') }} uses: codecov/codecov-action@v4 with: + token: ${{ secrets.CODECOV_TOKEN }} files: .coverage/GraphQLParser.Tests/coverage.net8.opencover.xml buildcheck: From 10bf84803230ff44296f1722d7d58a7d10bcd083 Mon Sep 17 00:00:00 2001 From: Ivan Maximov Date: Sat, 3 Feb 2024 16:01:32 +0300 Subject: [PATCH 3/3] simplify code coverage --- .github/workflows/test.yml | 4 ++-- src/Directory.Build.targets | 8 -------- src/GraphQLParser.sln | 1 - 3 files changed, 2 insertions(+), 11 deletions(-) delete mode 100644 src/Directory.Build.targets diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4eb5d794..5a6257dd 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -61,7 +61,7 @@ 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 @@ -71,7 +71,7 @@ jobs: uses: codecov/codecov-action@v4 with: token: ${{ secrets.CODECOV_TOKEN }} - files: .coverage/GraphQLParser.Tests/coverage.net8.opencover.xml + 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