Skip to content

Commit

Permalink
fix output folder
Browse files Browse the repository at this point in the history
  • Loading branch information
MSPoulaei committed Dec 25, 2023
1 parent 3490cec commit b098fc5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/cicd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,18 @@ jobs:
- name: Test
run: dotnet test --collect:"XPlat Code Coverage" --settings VakilPors.Test/coverlet.runsettings --verbosity normal --no-build
working-directory: ./src/VakilPors
- name: Find first subfolder
id: subfolder
run: subfolder=$(ls -d ./VakilPors.Test/TestResults head -n 1)
echo "subfolder=${subfolder%/}" >> $GITHUB_ENV
working-directory: ./src/VakilPors
- name: Create Test Coverage Badge
uses: simon-k/dotnet-code-coverage-badge@v1.0.0
id: create_coverage_badge
with:
label: Unit Test Coverage
color: brightgreen
path: ./src/VakilPors/VakilPors.Test/TestResults/coverage.opencover.xml
path: ./src/VakilPors/VakilPors.Test/TestResults/${{ env.subfolder }}/coverage.opencover.xml
gist-filename: code-coverage.json
gist-id: 20d8309ce4ac8005e22df30d985c6883
gist-auth-token: ${{ secrets.GIST_AUTH_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion src/VakilPors/VakilPors.Test/coverlet.runsettings
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<!-- <Format>json,cobertura,lcov,teamcity,opencover</Format>-->
<ExcludeByAttribute>Obsolete,GeneratedCodeAttribute,CompilerGeneratedAttribute</ExcludeByAttribute>
<ExcludeByFile>**/VakilPors.Data/**/*.cs,**/VakilPors.Shared/**/*.cs,**/VakilPors.Web/Configuration/**/*.cs,**/VakilPors.Web/Program.cs,**/VakilPors.Core/Authentication/**/*.cs,**/VakilPors.Core/Contracts/**/*.cs,**/VakilPors.Core/Domain/**/*.cs,**/VakilPors.Core/Exceptions/**/*.cs,**/VakilPors.Core/Hubs/**/*.cs,**/VakilPors.Core/Mapper/**/*.cs</ExcludeByFile> <!-- Globbing filter -->
<IncludeByFile>**/VakilPors.Web/Controllers/*.cs,**/VakilPors.Core/Services/*.cs</IncludeByFile>
<IncludeDirectory>**/VakilPors.Web/Controllers,**/VakilPors.Core/Services</IncludeDirectory>
<!-- <SingleHit>false</SingleHit>-->
<!-- <UseSourceLink>true</UseSourceLink>-->
<IncludeTestAssembly>true</IncludeTestAssembly>
Expand Down

0 comments on commit b098fc5

Please # to comment.