From 954578292734f195c221efe5610996ba47e15722 Mon Sep 17 00:00:00 2001 From: Bukowa Date: Sat, 29 Jun 2024 01:10:42 +0200 Subject: [PATCH] warning: this commit will be force pushed --- .github/workflows/tests-e2e-js.yaml | 76 +++++++++++++++++++++-------- justfile | 15 +++++- 2 files changed, 70 insertions(+), 21 deletions(-) diff --git a/.github/workflows/tests-e2e-js.yaml b/.github/workflows/tests-e2e-js.yaml index 6299c05..a9017ea 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,20 +12,49 @@ 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 + - name: Install Xming + shell: "bash" + if: matrix.platform == 'windows-latest' + run: | + curl -L -o xming.exe \ + https://kumisystems.dl.sourceforge.net/project/xming/Xming/6.9.0.31/Xming-6-9-0-31-setup.exe?viasf=1 + ls -al + ./xming.exe /VERYSILENT /NORESTART /SP /SUPPRESSMSGBOXES /NOCANCEL \ + /LOGCLOSEAPPLICATIONS \ + /LOG=$(pwd)/xming.log \ + & + sleep 10 + cat xming.log + - name: Setup Just uses: extractions/setup-just@6e1de3cc407de738551abd6c0923bd5ed5608042 with: @@ -43,17 +72,26 @@ jobs: toolchain: stable override: true - - name: Setup Rust Cache - uses: Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # v2 - with: - cache-all-crates: true - cache-targets: true - cache-directories: | - .build - - name: Install Prerequisites - run: | - . <(just prerequisites) +# https://github.com/Swatinem/rust-cache/issues/169 +# - name: Setup Rust Cache +# uses: Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # v2 +# with: +# cache-all-crates: true +# cache-targets: true +# cache-directories: | +# .build + +# - name: Install Prerequisites +# if: matrix.platform == 'ubuntu-latest' +# run: | +# . <(just prerequisites) +# +# - name: Run UI E2E tests Linux +# if: matrix.platform == 'ubuntu-latest' +# run: xvfb-run -a just test-e2e - - name: Run UI E2E tests - run: xvfb-run -a just test-e2e + - name: Run UI E2E tests Windows + shell: "bash" + if: matrix.platform == 'windows-latest' + run: just test-e2e diff --git a/justfile b/justfile index 7495d79..08975f0 100644 --- a/justfile +++ b/justfile @@ -102,14 +102,25 @@ test-e2e-fast: --require ts-node/register \ tests-e2e-js + + [group('webview')] -[doc('get microsoftedge version')] +[doc('get microsoftedge version that is pending update')] [windows] -browser-version: +browser-version-pending-update: REG QUERY \ "HKLM\SOFTWARE\WOW6432Node\Microsoft\EdgeUpdate\Clients\{56EB18F8-B008-4CBD-B6D2-8C97FE7E9062}" \ | grep pv | awk '{print $3}' +[group('webview')] +[doc('get microsoftedge version')] +[windows] +browser-version: + #!/bin/bash + wmic datafile where \ + 'name="C:\\Program Files (x86)\\Microsoft\\Edge\\Application\\msedge.exe"' \ + get version | tail -n2 | xargs + [group('webview')] [doc('get the webdriver url')] [windows]