Skip to content

Commit f49ff32

Browse files
committed
ci: remove windows test run a second time to just get the test status
1 parent 04e7831 commit f49ff32

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/test-on-pr.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ jobs:
4141
- name: Run tauri integration tests in windows
4242
# GUI apps in windows doesn't log on console. so we capture the output to a text file and print it, then fail on error.
4343
if: matrix.platform == 'windows-latest'
44+
id: windowsRun
4445
run: |
4546
"src-tauri\target\release\Phoenix File system.exe" -q > output.txt 2>&1
4647
shell: cmd
@@ -52,8 +53,9 @@ jobs:
5253
type output.txt
5354
shell: cmd
5455

55-
- name: Run tauri integration tests in windows and fail on error
56-
if: matrix.platform == 'windows-latest'
56+
- name: Fail on test runs failed in windows
57+
if: matrix.platform == 'windows-latest' && steps.windowsRun.outcome == 'failure'
5758
run: |
58-
"src-tauri\target\release\Phoenix File system.exe" -q > output.txt 2>&1
59+
echo "Windows tests failed, marking step as failed"
60+
exit 1
5961
shell: cmd

0 commit comments

Comments
 (0)