Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • 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.
11 changes: 4 additions & 7 deletions .github/workflows/dotnetcore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -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
Expand All @@ -76,4 +74,3 @@ jobs:
# Run baseline package validation
- name: Pack
run: dotnet pack Product.proj --no-restore --no-build
working-directory: Wilson

0 comments on commit 2810712

Please sign in to comment.