diff --git a/.github/workflows/tests-e2e-js.yaml b/.github/workflows/tests-e2e-js.yaml index 6299c05..fbe04db 100644 --- a/.github/workflows/tests-e2e-js.yaml +++ b/.github/workflows/tests-e2e-js.yaml @@ -2,7 +2,7 @@ name: "Test: UI E2E JS" on: schedule: - - cron: "20 04 * * *" + - cron: "20 04 * * *" push: branches: - master @@ -12,16 +12,31 @@ on: workflow_call: workflow_dispatch: +env: + TESTS_LOG_LEVEL: debug + # xvfb is slow to start + NODE_TEST_TIMEOUT: 90000 + TRACE: 1 + jobs: test: - timeout-minutes: 5 - runs-on: ubuntu-latest - name: "Run UI E2E tests" - env: - # xvfb is slow to start - NODE_TEST_TIMEOUT: 90000 + strategy: + fail-fast: false + matrix: + include: + # - platform: 'macos-latest' # for Arm based macs (M1 and above). + # args: '--target aarch64-apple-darwin' + # - platform: 'macos-latest' # for Intel based macs. + # args: '--target x86_64-apple-darwin' + - platform: 'ubuntu-latest' + args: '' + - platform: 'windows-latest' + args: '' + timeout-minutes: 15 + runs-on: ${{ matrix.platform }} + name: "Run UI E2E tests" steps: - name: Checkout uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4 @@ -52,8 +67,24 @@ jobs: .build - name: Install Prerequisites + if: matrix.platform == 'ubuntu-latest' run: | . <(just prerequisites) - - name: Run UI E2E tests + - name: Run UI E2E tests Linux + if: matrix.platform == 'ubuntu-latest' run: xvfb-run -a just test-e2e + + - name: Update Microsoft Edge + shell: "bash" + if: matrix.platform == 'windows-latest' + run: | + winget upgrade Microsoft.Edge \ + --disable-interactivity \ + --accept-source-agreements \ + --accept-package-agreements + + - name: Run UI E2E tests Windows + shell: "bash" + if: matrix.platform == 'windows-latest' + run: just test-e2e