Skip to content

Commit

Permalink
test: Back to testing on ubuntu-latest
Browse files Browse the repository at this point in the history
  • Loading branch information
timfish committed Jan 14, 2025
1 parent 3e4e105 commit be97690
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
# we want that the matrix keeps running, default is to cancel all if one fails.
fail-fast: false
matrix:
os: [ubuntu-22.04, macos-latest, windows-latest]
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
Expand All @@ -73,7 +73,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-22.04, windows-latest, macos-latest]
os: [ubuntu-latest, windows-latest, macos-latest]
electron: ${{ fromJson(needs.build.outputs.matrix) }}
env:
ELECTRON_VERSION: ${{ matrix.electron }}
Expand Down
7 changes: 2 additions & 5 deletions test/e2e/context.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { parseSemver } from '@sentry/core';
import { ChildProcess, spawn, spawnSync } from 'child_process';
import { rmSync } from 'fs';
import { homedir } from 'os';
Expand Down Expand Up @@ -68,11 +67,9 @@ export class TestContext {
this._clearAppUserData();
}

const version = parseSemver(this._electronVersion);

const args = [this._appPath];
// Older versions of Electron no longer work correctly on 'ubuntu-latest' with sandbox
if (process.platform === 'linux' && (version.major || 0) < 13) {
// Electron no longer work correctly on Github Actions 'ubuntu-latest' with sandbox
if (process.platform === 'linux') {
args.push('--no-sandbox');
}

Expand Down
2 changes: 1 addition & 1 deletion test/unit/getPath-test-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
"main": "main.js",
"scripts": {

"start": "../../../node_modules/.bin/electron ."
"start": "../../../node_modules/.bin/electron . --no-sandbox"
}
}

0 comments on commit be97690

Please sign in to comment.