From aba43278d7199579147d879f9a0629d8373158aa Mon Sep 17 00:00:00 2001 From: Amin Yahyaabadi Date: Mon, 30 Dec 2024 09:12:20 -0800 Subject: [PATCH] ci: guard the electron macos/windows tests on ubuntu --- .github/workflows/CI.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 7f9fd547..e86f0f8c 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -167,7 +167,7 @@ jobs: uses: nick-fields/retry@v3 with: timeout_minutes: 5 - max_attempts: 1 + max_attempts: 3 command: | pnpm run test.unit.compat continue-on-error: true @@ -177,11 +177,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: 3 command: | pnpm run test.electron.main continue-on-error: true @@ -191,7 +191,7 @@ jobs: uses: nick-fields/retry@v3 with: timeout_minutes: 5 - max_attempts: 1 + max_attempts: 3 command: | sudo apt-get install xvfb xvfb-run --auto-servernum pnpm run test.electron.main