Skip to content

Commit 985db30

Browse files
committed
ci: linux moves to electron tests in pull requests
1 parent ef0422c commit 985db30

File tree

2 files changed

+50
-56
lines changed

2 files changed

+50
-56
lines changed

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

Lines changed: 25 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,19 @@ jobs:
1212
runs-on: ubuntu-22.04
1313
timeout-minutes: 90
1414
steps:
15-
- uses: actions/checkout@v3
15+
- uses: actions/checkout@v4
1616
- name: setup node
17-
uses: actions/setup-node@v3
17+
uses: actions/setup-node@v4
1818
with:
1919
node-version: 24
20-
- name: install Rust stable
21-
uses: dtolnay/rust-toolchain@stable
22-
with:
23-
toolchain: 1.85.1
2420

2521
- name: install dependencies (ubuntu only)
2622
run: |
2723
sudo apt-get update
28-
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf
29-
sudo apt install build-essential curl wget file libssl-dev libayatana-appindicator3-dev
24+
sudo apt install build-essential curl wget file libssl-dev
3025
sudo apt-get install xvfb
26+
# libfuse2 is required for AppImages to run
27+
sudo apt-get install libfuse2
3128
3229
- name: build phoenix dist-test
3330
env:
@@ -50,69 +47,69 @@ jobs:
5047
npm ci
5148
npm run releaseDistTestDebug
5249
53-
- name: Run tauri unit tests
54-
uses: nick-fields/retry@v2
50+
- name: Run desktop unit tests
51+
uses: nick-fields/retry@v3
5552
id: linuxRunUnit
5653
continue-on-error: true
5754
with:
5855
timeout_minutes: 12
5956
max_attempts: 3
60-
command: xvfb-run ../phoenix-desktop/src-tauri/target/debug/phoenix-test --run-tests=unit -q
57+
command: xvfb-run ../phoenix-desktop/src-electron/dist/phoenix-test-runner.appimage --run-tests=unit -q
6158

62-
- name: Run tauri integration tests
63-
uses: nick-fields/retry@v2
59+
- name: Run desktop integration tests
60+
uses: nick-fields/retry@v3
6461
id: linuxRunIntegration
6562
continue-on-error: true
6663
with:
6764
timeout_minutes: 12
6865
max_attempts: 3
69-
command: xvfb-run ../phoenix-desktop/src-tauri/target/debug/phoenix-test --run-tests=integration -q
66+
command: xvfb-run ../phoenix-desktop/src-electron/dist/phoenix-test-runner.appimage --run-tests=integration -q
7067

71-
- name: Run tauri mainview tests
72-
uses: nick-fields/retry@v2
68+
- name: Run desktop mainview tests
69+
uses: nick-fields/retry@v3
7370
id: linuxRunMainview
7471
continue-on-error: true
7572
with:
7673
timeout_minutes: 12
7774
max_attempts: 3
78-
command: xvfb-run ../phoenix-desktop/src-tauri/target/debug/phoenix-test --run-tests=mainview -q
75+
command: xvfb-run ../phoenix-desktop/src-electron/dist/phoenix-test-runner.appimage --run-tests=mainview -q
7976

80-
- name: Run tauri livepreview tests
81-
uses: nick-fields/retry@v2
77+
- name: Run desktop livepreview tests
78+
uses: nick-fields/retry@v3
8279
id: linuxRunLivepreview
8380
continue-on-error: true
8481
with:
8582
timeout_minutes: 12
8683
max_attempts: 3
87-
command: xvfb-run ../phoenix-desktop/src-tauri/target/debug/phoenix-test --run-tests=livepreview -q
84+
command: xvfb-run ../phoenix-desktop/src-electron/dist/phoenix-test-runner.appimage --run-tests=livepreview -q
8885

89-
- name: Run tauri LegacyInteg tests
90-
uses: nick-fields/retry@v2
86+
- name: Run desktop LegacyInteg tests
87+
uses: nick-fields/retry@v3
9188
id: linuxRunLegacyInteg
9289
continue-on-error: true
9390
with:
9491
timeout_minutes: 20
9592
max_attempts: 3
96-
command: xvfb-run ../phoenix-desktop/src-tauri/target/debug/phoenix-test --run-tests=LegacyInteg -q
93+
command: xvfb-run ../phoenix-desktop/src-electron/dist/phoenix-test-runner.appimage --run-tests=LegacyInteg -q
9794

9895
- name: Fail on test runs failed in Linux
9996
if: steps.linuxRunUnit.outcome == 'failure' || steps.linuxRunIntegration.outcome == 'failure' || steps.linuxRunMainview.outcome == 'failure' || steps.linuxRunLivepreview.outcome == 'failure' || steps.linuxRunLegacyInteg.outcome == 'failure'
10097
run: |
10198
echo "Linux tests failed, marking step as failed"
10299
echo "Failed tests:"
103100
if [ "${{ steps.linuxRunUnit.outcome }}" == "failure" ]; then
104-
echo "- Run tauri unit tests"
101+
echo "- Run desktop unit tests"
105102
fi
106103
if [ "${{ steps.linuxRunIntegration.outcome }}" == "failure" ]; then
107-
echo "- Run tauri integration tests"
104+
echo "- Run desktop integration tests"
108105
fi
109106
if [ "${{ steps.linuxRunMainview.outcome }}" == "failure" ]; then
110-
echo "- Run tauri mainview tests"
107+
echo "- Run desktop mainview tests"
111108
fi
112109
if [ "${{ steps.linuxRunLivepreview.outcome }}" == "failure" ]; then
113-
echo "- Run tauri livepreview tests"
110+
echo "- Run desktop livepreview tests"
114111
fi
115112
if [ "${{ steps.linuxRunLegacyInteg.outcome }}" == "failure" ]; then
116-
echo "- Run tauri LegacyInteg tests"
113+
echo "- Run desktop LegacyInteg tests"
117114
fi
118115
exit 1

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

Lines changed: 25 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,19 @@ jobs:
1212
runs-on: ubuntu-22.04
1313
timeout-minutes: 90
1414
steps:
15-
- uses: actions/checkout@v3
15+
- uses: actions/checkout@v4
1616
- name: setup node
17-
uses: actions/setup-node@v3
17+
uses: actions/setup-node@v4
1818
with:
1919
node-version: 24
20-
- name: install Rust stable
21-
uses: dtolnay/rust-toolchain@stable
22-
with:
23-
toolchain: 1.85.1
2420

2521
- name: install dependencies (ubuntu only)
2622
run: |
2723
sudo apt-get update
28-
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf
29-
sudo apt install build-essential curl wget file libssl-dev libayatana-appindicator3-dev
24+
sudo apt install build-essential curl wget file libssl-dev
3025
sudo apt-get install xvfb
26+
# libfuse2 is required for AppImages to run
27+
sudo apt-get install libfuse2
3128
3229
- name: build phoenix dist-test
3330
env:
@@ -50,69 +47,69 @@ jobs:
5047
npm ci
5148
npm run releaseDistTestDebug
5249
53-
- name: Run tauri unit tests
54-
uses: nick-fields/retry@v2
50+
- name: Run desktop unit tests
51+
uses: nick-fields/retry@v3
5552
id: linuxRunUnit
5653
continue-on-error: true
5754
with:
5855
timeout_minutes: 12
5956
max_attempts: 3
60-
command: xvfb-run ../phoenix-desktop/src-tauri/target/debug/phoenix-test --run-tests=unit -q
57+
command: xvfb-run ../phoenix-desktop/src-electron/dist/phoenix-test-runner.appimage --run-tests=unit -q
6158

62-
- name: Run tauri integration tests
63-
uses: nick-fields/retry@v2
59+
- name: Run desktop integration tests
60+
uses: nick-fields/retry@v3
6461
id: linuxRunIntegration
6562
continue-on-error: true
6663
with:
6764
timeout_minutes: 12
6865
max_attempts: 3
69-
command: xvfb-run ../phoenix-desktop/src-tauri/target/debug/phoenix-test --run-tests=integration -q
66+
command: xvfb-run ../phoenix-desktop/src-electron/dist/phoenix-test-runner.appimage --run-tests=integration -q
7067

71-
- name: Run tauri mainview tests
72-
uses: nick-fields/retry@v2
68+
- name: Run desktop mainview tests
69+
uses: nick-fields/retry@v3
7370
id: linuxRunMainview
7471
continue-on-error: true
7572
with:
7673
timeout_minutes: 12
7774
max_attempts: 3
78-
command: xvfb-run ../phoenix-desktop/src-tauri/target/debug/phoenix-test --run-tests=mainview -q
75+
command: xvfb-run ../phoenix-desktop/src-electron/dist/phoenix-test-runner.appimage --run-tests=mainview -q
7976

80-
- name: Run tauri livepreview tests
81-
uses: nick-fields/retry@v2
77+
- name: Run desktop livepreview tests
78+
uses: nick-fields/retry@v3
8279
id: linuxRunLivepreview
8380
continue-on-error: true
8481
with:
8582
timeout_minutes: 12
8683
max_attempts: 3
87-
command: xvfb-run ../phoenix-desktop/src-tauri/target/debug/phoenix-test --run-tests=livepreview -q
84+
command: xvfb-run ../phoenix-desktop/src-electron/dist/phoenix-test-runner.appimage --run-tests=livepreview -q
8885

89-
- name: Run tauri LegacyInteg tests
90-
uses: nick-fields/retry@v2
86+
- name: Run desktop LegacyInteg tests
87+
uses: nick-fields/retry@v3
9188
id: linuxRunLegacyInteg
9289
continue-on-error: true
9390
with:
9491
timeout_minutes: 20
9592
max_attempts: 3
96-
command: xvfb-run ../phoenix-desktop/src-tauri/target/debug/phoenix-test --run-tests=LegacyInteg -q
93+
command: xvfb-run ../phoenix-desktop/src-electron/dist/phoenix-test-runner.appimage --run-tests=LegacyInteg -q
9794

9895
- name: Fail on test runs failed in Linux
9996
if: steps.linuxRunUnit.outcome == 'failure' || steps.linuxRunIntegration.outcome == 'failure' || steps.linuxRunMainview.outcome == 'failure' || steps.linuxRunLivepreview.outcome == 'failure' || steps.linuxRunLegacyInteg.outcome == 'failure'
10097
run: |
10198
echo "Linux tests failed, marking step as failed"
10299
echo "Failed tests:"
103100
if [ "${{ steps.linuxRunUnit.outcome }}" == "failure" ]; then
104-
echo "- Run tauri unit tests"
101+
echo "- Run desktop unit tests"
105102
fi
106103
if [ "${{ steps.linuxRunIntegration.outcome }}" == "failure" ]; then
107-
echo "- Run tauri integration tests"
104+
echo "- Run desktop integration tests"
108105
fi
109106
if [ "${{ steps.linuxRunMainview.outcome }}" == "failure" ]; then
110-
echo "- Run tauri mainview tests"
107+
echo "- Run desktop mainview tests"
111108
fi
112109
if [ "${{ steps.linuxRunLivepreview.outcome }}" == "failure" ]; then
113-
echo "- Run tauri livepreview tests"
110+
echo "- Run desktop livepreview tests"
114111
fi
115112
if [ "${{ steps.linuxRunLegacyInteg.outcome }}" == "failure" ]; then
116-
echo "- Run tauri LegacyInteg tests"
113+
echo "- Run desktop LegacyInteg tests"
117114
fi
118115
exit 1

0 commit comments

Comments
 (0)