Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 9 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,9 @@ jobs:
strategy:
matrix:
os:
- macos-latest
# Testing on Linux is temporarily disabled until we can figure out the SUID sandboxing issue.
# - ubuntu-latest
- windows-latest
# - macos-latest
- ubuntu-latest
# - windows-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -49,10 +48,15 @@ jobs:
if: steps.cache.outputs.cache-hit != 'true'
run: npm install

- name: Linux workarounds
if: runner.os == 'Linux'
run: sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0

- name: Run tests
run: |
composer run assets --working-dir=build
npm run test
npx electron-vite build
xvfb-run -- npx playwright test

- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
Expand Down
2 changes: 2 additions & 0 deletions src/main/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ import { hideBin } from 'yargs/helpers';
import { PhpCommand } from './PhpCommand';
import { ComposerCommand } from './ComposerCommand';

app.commandLine.appendSwitch('ozone-platform', 'x11');

// If any uncaught exception happens, send it to Sentry.
Sentry.init({
beforeSend: (event, hint) => {
Expand Down
1 change: 1 addition & 0 deletions tests/main.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ async function launchApp(testInfo: TestInfo, ...options: string[]): Promise<[Ele
COMPOSER_MIRROR_PATH_REPOS: '1',
// Disable the network so we don't inadvertently test the internet.
COMPOSER_DISABLE_NETWORK: '1',
DISPLAY: ':99',
},
});
return [app, root];
Expand Down
Loading