Skip to content

Commit 87ee098

Browse files
Run integration tests on all platforms (Linux, macOS, Windows)
Use matrix strategy to test on ubuntu-latest, macos-latest, and windows-latest. Linux uses xvfb for headless display. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent f0692a6 commit 87ee098

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

.github/workflows/electron-build.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,11 @@ jobs:
107107

108108
test-integration:
109109
needs: build
110-
runs-on: ubuntu-latest
110+
runs-on: ${{ matrix.os }}
111+
strategy:
112+
fail-fast: false
113+
matrix:
114+
os: [ubuntu-latest, macos-latest, windows-latest]
111115

112116
steps:
113117
- uses: actions/checkout@v4
@@ -130,10 +134,16 @@ jobs:
130134
working-directory: electron
131135
run: npm run build
132136

133-
- name: Run integration tests
137+
- name: Run integration tests (Linux)
138+
if: runner.os == 'Linux'
134139
working-directory: electron
135140
run: xvfb-run --auto-servernum npm run test:integration
136141

142+
- name: Run integration tests (macOS/Windows)
143+
if: runner.os != 'Linux'
144+
working-directory: electron
145+
run: npm run test:integration
146+
137147
test-linux-install:
138148
needs: build
139149
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)