From d1a18e1ce1f424b4123a980b2bc20aac5d2e830f Mon Sep 17 00:00:00 2001 From: Jenny Ferries Date: Mon, 3 Mar 2025 15:38:30 -0800 Subject: [PATCH] comment out the code coverage --- .github/workflows/dotnetcore.yml | 38 ++++++++++++++++---------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/.github/workflows/dotnetcore.yml b/.github/workflows/dotnetcore.yml index 30b790cec..83bee5356 100644 --- a/.github/workflows/dotnetcore.yml +++ b/.github/workflows/dotnetcore.yml @@ -56,25 +56,25 @@ jobs: dotnet tool install -g dotnet-reportgenerator-globaltool --version 5.4.1 reportgenerator -reports:./**/coverage.cobertura.xml -targetdir:CodeCoverage -reporttypes:'MarkdownSummaryGithub;Cobertura' -filefilters:'+src/**/*.cs' - - name: Write coverage to job summary - shell: bash - run: | - cat CodeCoverage/SummaryGithub.md >> $GITHUB_STEP_SUMMARY - echo "COMMENT_CONTENT_ENV_VAR<> $GITHUB_ENV - echo $(cat CodeCoverage/SummaryGithub.md) >> $GITHUB_ENV - echo "EOF" >> $GITHUB_ENV - - - name: Comment coverage in PR - uses: actions/github-script@v7 - id: comment - with: - script: | - github.rest.issues.createComment({ - issue_number: context.issue.number, - owner: context.repo.owner, - repo: context.repo.repo, - body: process.env.COMMENT_CONTENT_ENV_VAR - }) + # - name: Write coverage to job summary + # shell: bash + # run: | + # cat CodeCoverage/SummaryGithub.md >> $GITHUB_STEP_SUMMARY + # echo "COMMENT_CONTENT_ENV_VAR<> $GITHUB_ENV + # echo $(cat CodeCoverage/SummaryGithub.md) >> $GITHUB_ENV + # echo "EOF" >> $GITHUB_ENV + + # - name: Comment coverage in PR + # uses: actions/github-script@v7 + # id: comment + # with: + # script: | + # github.rest.issues.createComment({ + # issue_number: context.issue.number, + # owner: context.repo.owner, + # repo: context.repo.repo, + # body: process.env.COMMENT_CONTENT_ENV_VAR + # }) - name: Test with .NET 462 run: dotnet test --no-restore --no-build Microsoft.Identity.Web.sln -f net462 -v normal -p:FROM_GITHUB_ACTION=true --configuration Release --filter "(FullyQualifiedName!~Microsoft.Identity.Web.Test.Integration)&(FullyQualifiedName!~WebAppUiTests)&(FullyQualifiedName!~IntegrationTests)"