Skip to content

Commit 56bed16

Browse files
committed
test: run desktop tests in pull requests to completion even with some suites fails
1 parent c06d951 commit 56bed16

File tree

4 files changed

+64
-0
lines changed

4 files changed

+64
-0
lines changed

.github/workflows/desktop-linux-prod-test-pull.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,35 +48,51 @@ jobs:
4848
4949
- name: Run tauri unit tests
5050
uses: nick-fields/retry@v2
51+
id: linuxRunUnit
52+
continue-on-error: true
5153
with:
5254
timeout_minutes: 12
5355
max_attempts: 3
5456
command: xvfb-run ../phoenix-desktop/src-tauri/target/debug/phoenix-test --run-tests=unit -q
5557

5658
- name: Run tauri integration tests
5759
uses: nick-fields/retry@v2
60+
id: linuxRunIntegration
61+
continue-on-error: true
5862
with:
5963
timeout_minutes: 12
6064
max_attempts: 3
6165
command: xvfb-run ../phoenix-desktop/src-tauri/target/debug/phoenix-test --run-tests=integration -q
6266

6367
- name: Run tauri mainview tests
6468
uses: nick-fields/retry@v2
69+
id: linuxRunMainview
70+
continue-on-error: true
6571
with:
6672
timeout_minutes: 12
6773
max_attempts: 3
6874
command: xvfb-run ../phoenix-desktop/src-tauri/target/debug/phoenix-test --run-tests=mainview -q
6975

7076
- name: Run tauri livepreview tests
7177
uses: nick-fields/retry@v2
78+
id: linuxRunLivepreview
79+
continue-on-error: true
7280
with:
7381
timeout_minutes: 12
7482
max_attempts: 3
7583
command: xvfb-run ../phoenix-desktop/src-tauri/target/debug/phoenix-test --run-tests=livepreview -q
7684

7785
- name: Run tauri LegacyInteg tests
7886
uses: nick-fields/retry@v2
87+
id: linuxRunLegacyInteg
88+
continue-on-error: true
7989
with:
8090
timeout_minutes: 20
8191
max_attempts: 3
8292
command: xvfb-run ../phoenix-desktop/src-tauri/target/debug/phoenix-test --run-tests=LegacyInteg -q
93+
94+
- name: Fail on test runs failed in Linux
95+
if: steps.linuxRunUnit.outcome == 'failure' || steps.linuxRunIntegration.outcome == 'failure' || steps.linuxRunMainview.outcome == 'failure' || steps.linuxRunLivepreview.outcome == 'failure' || steps.linuxRunLegacyInteg.outcome == 'failure'
96+
run: |
97+
echo "Linux tests failed, marking step as failed"
98+
exit 1

.github/workflows/desktop-linux-test-pull.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,35 +47,51 @@ jobs:
4747
4848
- name: Run tauri unit tests
4949
uses: nick-fields/retry@v2
50+
id: linuxRunUnit
51+
continue-on-error: true
5052
with:
5153
timeout_minutes: 12
5254
max_attempts: 3
5355
command: xvfb-run ../phoenix-desktop/src-tauri/target/debug/phoenix-test --run-tests=unit -q
5456

5557
- name: Run tauri integration tests
5658
uses: nick-fields/retry@v2
59+
id: linuxRunIntegration
60+
continue-on-error: true
5761
with:
5862
timeout_minutes: 12
5963
max_attempts: 3
6064
command: xvfb-run ../phoenix-desktop/src-tauri/target/debug/phoenix-test --run-tests=integration -q
6165

6266
- name: Run tauri mainview tests
6367
uses: nick-fields/retry@v2
68+
id: linuxRunMainview
69+
continue-on-error: true
6470
with:
6571
timeout_minutes: 12
6672
max_attempts: 3
6773
command: xvfb-run ../phoenix-desktop/src-tauri/target/debug/phoenix-test --run-tests=mainview -q
6874

6975
- name: Run tauri livepreview tests
7076
uses: nick-fields/retry@v2
77+
id: linuxRunLivepreview
78+
continue-on-error: true
7179
with:
7280
timeout_minutes: 12
7381
max_attempts: 3
7482
command: xvfb-run ../phoenix-desktop/src-tauri/target/debug/phoenix-test --run-tests=livepreview -q
7583

7684
- name: Run tauri LegacyInteg tests
7785
uses: nick-fields/retry@v2
86+
id: linuxRunLegacyInteg
87+
continue-on-error: true
7888
with:
7989
timeout_minutes: 20
8090
max_attempts: 3
8191
command: xvfb-run ../phoenix-desktop/src-tauri/target/debug/phoenix-test --run-tests=LegacyInteg -q
92+
93+
- name: Fail on test runs failed in Linux
94+
if: steps.linuxRunUnit.outcome == 'failure' || steps.linuxRunIntegration.outcome == 'failure' || steps.linuxRunMainview.outcome == 'failure' || steps.linuxRunLivepreview.outcome == 'failure' || steps.linuxRunLegacyInteg.outcome == 'failure'
95+
run: |
96+
echo "Linux tests failed, marking step as failed"
97+
exit 1

.github/workflows/desktop-mac-m1-test-pull.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,35 +40,51 @@ jobs:
4040
4141
- name: Run tauri unit tests
4242
uses: nick-fields/retry@v2
43+
id: macM1RunUnit
44+
continue-on-error: true
4345
with:
4446
timeout_minutes: 12
4547
max_attempts: 3
4648
command: ../phoenix-desktop/src-tauri/target/debug/phoenix-test --run-tests=unit -q
4749

4850
- name: Run tauri integration tests
4951
uses: nick-fields/retry@v2
52+
id: macM1RunIntegration
53+
continue-on-error: true
5054
with:
5155
timeout_minutes: 12
5256
max_attempts: 3
5357
command: ../phoenix-desktop/src-tauri/target/debug/phoenix-test --run-tests=integration -q
5458

5559
- name: Run tauri mainview tests
5660
uses: nick-fields/retry@v2
61+
id: macM1RunMainview
62+
continue-on-error: true
5763
with:
5864
timeout_minutes: 12
5965
max_attempts: 3
6066
command: ../phoenix-desktop/src-tauri/target/debug/phoenix-test --run-tests=mainview -q
6167

6268
- name: Run tauri livepreview tests
6369
uses: nick-fields/retry@v2
70+
id: macM1RunLivepreview
71+
continue-on-error: true
6472
with:
6573
timeout_minutes: 12
6674
max_attempts: 3
6775
command: ../phoenix-desktop/src-tauri/target/debug/phoenix-test --run-tests=livepreview -q
6876

6977
- name: Run tauri LegacyInteg tests
7078
uses: nick-fields/retry@v2
79+
id: macM1RunLegacyInteg
80+
continue-on-error: true
7181
with:
7282
timeout_minutes: 30
7383
max_attempts: 3
7484
command: ../phoenix-desktop/src-tauri/target/debug/phoenix-test --run-tests=LegacyInteg -q
85+
86+
- name: Fail on test runs failed in Mac M1
87+
if: steps.macM1RunUnit.outcome == 'failure' || steps.macM1RunIntegration.outcome == 'failure' || steps.macM1RunMainview.outcome == 'failure' || steps.macM1RunLivepreview.outcome == 'failure' || steps.macM1RunLegacyInteg.outcome == 'failure'
88+
run: |
89+
echo "Mac M1 tests failed, marking step as failed"
90+
exit 1

.github/workflows/desktop-mac-test-pull.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,35 +40,51 @@ jobs:
4040
4141
- name: Run tauri unit tests
4242
uses: nick-fields/retry@v2
43+
id: macRunUnit
44+
continue-on-error: true
4345
with:
4446
timeout_minutes: 12
4547
max_attempts: 3
4648
command: ../phoenix-desktop/src-tauri/target/debug/phoenix-test --run-tests=unit -q
4749

4850
- name: Run tauri integration tests
4951
uses: nick-fields/retry@v2
52+
id: macRunIntegration
53+
continue-on-error: true
5054
with:
5155
timeout_minutes: 12
5256
max_attempts: 3
5357
command: ../phoenix-desktop/src-tauri/target/debug/phoenix-test --run-tests=integration -q
5458

5559
- name: Run tauri mainview tests
5660
uses: nick-fields/retry@v2
61+
id: macRunMainview
62+
continue-on-error: true
5763
with:
5864
timeout_minutes: 12
5965
max_attempts: 3
6066
command: ../phoenix-desktop/src-tauri/target/debug/phoenix-test --run-tests=mainview -q
6167

6268
- name: Run tauri livepreview tests
6369
uses: nick-fields/retry@v2
70+
id: macRunLivepreview
71+
continue-on-error: true
6472
with:
6573
timeout_minutes: 12
6674
max_attempts: 3
6775
command: ../phoenix-desktop/src-tauri/target/debug/phoenix-test --run-tests=livepreview -q
6876

6977
- name: Run tauri LegacyInteg tests
7078
uses: nick-fields/retry@v2
79+
id: macRunLegacyInteg
80+
continue-on-error: true
7181
with:
7282
timeout_minutes: 30
7383
max_attempts: 3
7484
command: ../phoenix-desktop/src-tauri/target/debug/phoenix-test --run-tests=LegacyInteg -q
85+
86+
- name: Fail on test runs failed in Mac
87+
if: steps.macRunUnit.outcome == 'failure' || steps.macRunIntegration.outcome == 'failure' || steps.macRunMainview.outcome == 'failure' || steps.macRunLivepreview.outcome == 'failure' || steps.macRunLegacyInteg.outcome == 'failure'
88+
run: |
89+
echo "Mac tests failed, marking step as failed"
90+
exit 1

0 commit comments

Comments
 (0)