-
Notifications
You must be signed in to change notification settings - Fork 411
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' into gfi-duplicate-log-key-id
- Loading branch information
Showing
4 changed files
with
22 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,7 +35,7 @@ jobs: | |
uses: actions/[email protected] | ||
|
||
- name: Setup .NET 9.x | ||
uses: actions/setup-dotnet@v4.1.0 | ||
uses: actions/setup-dotnet@v4 | ||
with: | ||
dotnet-version: 9.x | ||
|
||
|
@@ -49,28 +49,27 @@ jobs: | |
- name: Create code coverage report | ||
run: | | ||
dotnet tool install -g dotnet-reportgenerator-globaltool --version 5.4.1 | ||
reportgenerator -reports:./**/coverage.cobertura.xml -targetdir:CodeCoverage -reporttypes:'MarkdownSummaryGithub;Cobertura' | ||
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 | ||
# Temporarily disable commenting the coverage report | ||
# echo "COMMENT_CONTENT_ENV_VAR<<EOF" >> $GITHUB_ENV | ||
# echo $(cat CodeCoverage/SummaryGithub.md) >> $GITHUB_ENV | ||
# echo "EOF" >> $GITHUB_ENV | ||
echo "COMMENT_CONTENT_ENV_VAR<<EOF" >> $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: 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 | ||
}) | ||
# Run baseline package validation | ||
- name: Pack | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters