@@ -62,22 +62,17 @@ jobs:
6262 exit 1
6363 shell : cmd
6464
65+ # Electron tests are only tested for Linux for now
6566 test-electron :
66- strategy :
67- fail-fast : false
68- matrix :
69- platform : [macos-15, ubuntu-22.04, windows-latest]
70-
71- runs-on : ${{ matrix.platform }}
67+ runs-on : ubuntu-22.04
7268 timeout-minutes : 60
7369 steps :
7470 - uses : actions/checkout@v4
7571 - name : setup node
7672 uses : actions/setup-node@v4
7773 with :
7874 node-version : 18
79- - name : install dependencies (ubuntu only)
80- if : matrix.platform == 'ubuntu-22.04'
75+ - name : install dependencies
8176 run : |
8277 sudo apt-get update
8378 sudo apt-get install -y xvfb
@@ -86,39 +81,38 @@ jobs:
8681 npm install
8782 echo "npm run build not executed as we will be running tests against the checked in release artifacts only!"
8883 npm run _copy-dist-to-test
89- - name : Run electron integration tests in ubuntu
90- if : matrix.platform == 'ubuntu-22.04'
84+ - name : Run electron integration tests
9185 run : |
9286 npm run _serve-tauri &
9387 sleep 2
9488 xvfb-run ./src-electron/node_modules/.bin/electron src-electron/main.js --quit-when-done
9589
96- - name : Run electron integration tests in macos
97- if : matrix.platform == 'macos-15'
98- run : |
99- npm run _serve-tauri &
100- sleep 2
101- ./src-electron/node_modules/.bin/electron src-electron/main.js --quit-when-done
90+ # - name: Run electron integration tests in macos
91+ # if: matrix.platform == 'macos-15'
92+ # run: |
93+ # npm run _serve-tauri &
94+ # sleep 2
95+ # ./src-electron/node_modules/.bin/electron src-electron/main.js --quit-when-done
10296
103- - name : Run electron integration tests in windows
104- if : matrix.platform == 'windows-latest'
105- id : windowsElectronRun
106- run : |
107- Start-Process -NoNewWindow -FilePath "npm" -ArgumentList "run", "_serve-tauri"
108- Start-Sleep -Seconds 2
109- & ".\src-electron\node_modules\.bin\electron.cmd" "src-electron\main.js" "--quit-when-done" 2>&1 | Tee-Object -FilePath electron-output.txt
110- shell : pwsh
111- continue-on-error : true
97+ # - name: Run electron integration tests in windows
98+ # if: matrix.platform == 'windows-latest'
99+ # id: windowsElectronRun
100+ # run: |
101+ # Start-Process -NoNewWindow -FilePath "npm" -ArgumentList "run", "_serve-tauri"
102+ # Start-Sleep -Seconds 2
103+ # & ".\src-electron\node_modules\.bin\electron.cmd" "src-electron\main.js" "--quit-when-done" 2>&1 | Tee-Object -FilePath electron-output.txt
104+ # shell: pwsh
105+ # continue-on-error: true
112106
113- - name : Print windows electron test output to console
114- if : matrix.platform == 'windows-latest'
115- run : |
116- type electron-output.txt
117- shell : cmd
107+ # - name: Print windows electron test output to console
108+ # if: matrix.platform == 'windows-latest'
109+ # run: |
110+ # type electron-output.txt
111+ # shell: cmd
118112
119- - name : Fail on electron test runs failed in windows
120- if : matrix.platform == 'windows-latest' && steps.windowsElectronRun.outcome == 'failure'
121- run : |
122- echo "Windows Electron tests failed, marking step as failed"
123- exit 1
124- shell : cmd
113+ # - name: Fail on electron test runs failed in windows
114+ # if: matrix.platform == 'windows-latest' && steps.windowsElectronRun.outcome == 'failure'
115+ # run: |
116+ # echo "Windows Electron tests failed, marking step as failed"
117+ # exit 1
118+ # shell: cmd
0 commit comments