-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update dotnet-desktop.yml: msbuild and store test results on fail
- Loading branch information
Showing
1 changed file
with
21 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 }} | ||
|
@@ -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 | ||
|
@@ -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: | ||
|
@@ -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/ |