-
Notifications
You must be signed in to change notification settings - Fork 414
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Sruthi Keerthi Rangavajhula (from Dev Box)
committed
Dec 3, 2024
1 parent
8af9009
commit 2810712
Showing
1 changed file
with
4 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,12 +24,14 @@ jobs: | |
build: | ||
runs-on: windows-latest | ||
continue-on-error: false | ||
|
||
name: "Build and run unit tests" | ||
steps: | ||
- name: Set shorter workspace path | ||
run: echo "workspace=/Wilson" >> $GITHUB_ENV | ||
|
||
- name: Checkout repository | ||
uses: actions/[email protected] | ||
with: | ||
path: Wilson | ||
|
||
- name: Setup .NET 9.x | ||
uses: actions/[email protected] | ||
|
@@ -39,23 +41,19 @@ jobs: | |
- name: Strong name bypass | ||
run: | | ||
regedit /s .\build\strongNameBypass.reg | ||
working-directory: Wilson | ||
- name: Run the tests | ||
run: dotnet test Wilson.sln --collect:"XPlat Code Coverage" --settings:./build/CodeCoverage.runsettings | ||
working-directory: Wilson | ||
|
||
- 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' | ||
working-directory: Wilson | ||
- name: Write coverage to job summary | ||
shell: bash | ||
run: | | ||
cat CodeCoverage/SummaryGithub.md >> $GITHUB_STEP_SUMMARY | ||
working-directory: Wilson | ||
# Temporarily disable commenting the coverage report | ||
# echo "COMMENT_CONTENT_ENV_VAR<<EOF" >> $GITHUB_ENV | ||
# echo $(cat CodeCoverage/SummaryGithub.md) >> $GITHUB_ENV | ||
|
@@ -76,4 +74,3 @@ jobs: | |
# Run baseline package validation | ||
- name: Pack | ||
run: dotnet pack Product.proj --no-restore --no-build | ||
working-directory: Wilson |