Skip to content

Commit

Permalink
ci: guard the electron macos/windows tests on ubuntu
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Dec 30, 2024
1 parent 0496792 commit f52055c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,12 @@ jobs:

- name: Test
if: ${{ !matrix.dockerfile }}
run: |
pnpm run test.unit
uses: nick-fields/retry@v3
with:
timeout_minutes: 5
max_attempts: 2
command: |
pnpm run test.unit
- name: Clean Tmp
run: rm -rf ./tmp
Expand All @@ -167,7 +171,7 @@ jobs:
uses: nick-fields/retry@v3
with:
timeout_minutes: 5
max_attempts: 1
max_attempts: 2
command: |
pnpm run test.unit.compat
continue-on-error: true
Expand All @@ -177,11 +181,11 @@ jobs:
shell: bash

- name: Test Electron Windows/MacOS
if: "${{ !matrix.dockerfile }}"
if: "${{ !contains(matrix.os, 'ubuntu') && !matrix.dockerfile }}"
uses: nick-fields/retry@v3
with:
timeout_minutes: 5
max_attempts: 1
max_attempts: 2
command: |
pnpm run test.electron.main
continue-on-error: true
Expand All @@ -191,7 +195,7 @@ jobs:
uses: nick-fields/retry@v3
with:
timeout_minutes: 5
max_attempts: 1
max_attempts: 2
command: |
sudo apt-get install xvfb
xvfb-run --auto-servernum pnpm run test.electron.main
Expand Down
2 changes: 1 addition & 1 deletion .mocharc.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const config = {
"expose-gc": true,
"v8-expose-gc": true,
exit: true,
parallel: true,
parallel: false,
timeout: 6000,
retries: 3,
fullTrace: true,
Expand Down
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
},
"mochaExplorer.files": "test/unit/**/*-test.ts",
"mochaExplorer.mochaPath": "./node_modules/mocha",
"mochaExplorer.timeout": 6000,
"files.exclude": {
"**/.DS_Store": true,
"**/Thumbs.db": true,
Expand Down

0 comments on commit f52055c

Please sign in to comment.