Skip to content

Commit

Permalink
Update deep-source.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
guibranco authored Aug 13, 2023
1 parent 38adbd7 commit 981cdcc
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/deep-source.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,20 +39,24 @@ jobs:
- name: DotNet Tool Install Coverlet
run: dotnet tool install --global coverlet.console

- name: Set solution name
run: |
echo "solution=$(([io.fileinfo]$(Get-ChildItem -Path .\* -Include *.sln)).name)" | Out-File -FilePath $env:GITHUB_ENV -Append
- name: Restore NuGet Packages
run: nuget restore "${{ env.solution }}"
run: nuget restore ${{ env.solution }}

- name: Build Release
run: msbuild GuiStracini.Mandae.sln /p:Configuration=Release
run: msbuild ${{ env.solution }}.sln /p:Configuration=Release

- name: Test
run: coverlet Tests\GuiStracini.Mandae.Tests\bin\Release\GuiStracini.Mandae.Tests.dll -t "vstest.console.exe" -a "Tests\GuiStracini.Mandae.Tests\bin\Release\GuiStracini.Mandae.Tests.dll" -o "Tests\GuiStracini.Mandae.Tests\bin\Release\\" -f cobertura
run: coverlet Tests\${{ env.solution }}.Tests\bin\Release\${{ env.solution }}.Tests.dll -t "vstest.console.exe" -a "Tests\${{ env.solution }}.Tests\bin\Release\${{ env.solution }}Tests.dll" -o "Tests\${{ env.solution }}.Tests\bin\Release\\" -f cobertura

- name: Upload artifact test coverage
uses: actions/upload-artifact@v3.1.2
with:
name: coverage
path: Tests\GuiStracini.Mandae.Tests\bin\Release\coverage.cobertura.xml
path: Tests\${{ env.solution }}.Tests\bin\Release\coverage.cobertura.xml

deep-source:
name: Deep Source Coverage report
Expand Down

0 comments on commit 981cdcc

Please sign in to comment.