Skip to content

Commit 7842ca0

Browse files
rathbomaclaude
andcommitted
Add electron-mocha tests to regular Electron workflow
Matches the electron-arm64 workflow - uses electron-mocha to run the full test suite with Electron's Node runtime. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
1 parent 98baf8a commit 7842ca0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/electron.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,14 @@ jobs:
5757
run: npm install
5858

5959
- name: Install Electron rebuild tools
60-
run: npm install --save-dev @electron/rebuild electron@${{ matrix.electron-version }}
60+
run: npm install --save-dev @electron/rebuild electron@${{ matrix.electron-version }} electron-mocha
6161

6262
- name: Rebuild for Electron
6363
run: npx @electron/rebuild --version ${{ matrix.electron-version }}
6464

65+
- name: Run tests with Electron
66+
run: npx electron-mocha --no-sandbox test/**/*.test.js --timeout 10000
67+
6568
- name: Show build output
6669
shell: bash
6770
run: |

0 commit comments

Comments
 (0)