Skip to content

Commit

Permalink
Update dotnet-desktop.yml: msbuild and store test results on fail
Browse files Browse the repository at this point in the history
  • Loading branch information
romibi authored Oct 31, 2023
1 parent d3122a0 commit 33464d4
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion .github/workflows/dotnet-desktop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ jobs:
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x

- name: Add msbuild to PATH
uses: microsoft/[email protected]

- name: Restore dependencies
run: dotnet restore ${{ env.Solution_Name }}
Expand All @@ -80,7 +83,15 @@ jobs:

- name: Run Tests
run: dotnet test


- name: Store Failed Test Results
if: failure()
uses: actions/upload-artifact@v3
with:
name: TestFails
path: |
**/TestFails/
- name: Publish Project
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
shell: cmd
Expand Down Expand Up @@ -127,6 +138,7 @@ jobs:
github-token: ${{ secrets.GITHUB_TOKEN }}
file: Publish (linux-x86_64)/ScrapPackedExplorerCli
release-url: ${{ steps.create_release.outputs.upload_url }}

build-and-tests-on-linux:
runs-on: ubuntu-latest
env:
Expand Down Expand Up @@ -161,3 +173,11 @@ jobs:
- name: Run Tests
run: dotnet test --no-restore

- name: Store Failed Test Results
if: failure()
uses: actions/upload-artifact@v3
with:
name: TestFails
path: |
**/TestFails/

0 comments on commit 33464d4

Please sign in to comment.