From 281071296e36753513d68af77485b361403febac Mon Sep 17 00:00:00 2001 From: "Sruthi Keerthi Rangavajhula (from Dev Box)" Date: Tue, 3 Dec 2024 14:20:40 -0800 Subject: [PATCH] Update --- .github/workflows/dotnetcore.yml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/.github/workflows/dotnetcore.yml b/.github/workflows/dotnetcore.yml index cc006b94d1..8e928bbc8b 100644 --- a/.github/workflows/dotnetcore.yml +++ b/.github/workflows/dotnetcore.yml @@ -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/checkout@v4.1.1 - with: - path: Wilson - name: Setup .NET 9.x uses: actions/setup-dotnet@v4.1.0 @@ -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<> $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