Skip to content

[Test] Firmware canary Suite Web e2e tests #125

[Test] Firmware canary Suite Web e2e tests

[Test] Firmware canary Suite Web e2e tests #125

name: "[Test] Firmware canary Suite Web e2e tests"
# Nightly scheduled check on develop branch
# Builds/deploys the web app to dev.suite.sldev.cz/suite-web/develop/web
# Runs full e2e test suite for Suite Web
# Uses firmware built nightly from main branch
permissions:
id-token: write # for fetching the OIDC token
contents: read # for actions/checkout
on:
schedule:
- cron: "0 1 * * *"
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
env:
DEV_SERVER_URL: "https://dev.suite.sldev.cz"
STAGING_SUITE_SERVER_URL: "https://staging-suite.trezor.io"
jobs:
build-web:
if: github.repository == 'trezor/trezor-suite'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build and Upload Suite Web
uses: ./.github/actions/build-web
with:
deployment-branch-override: "fw-canary-788b960e2c6b5112230ded6129d69538"
run-e2e-suite-web-tests:
if: github.repository == 'trezor/trezor-suite'
runs-on: ubuntu-latest
needs:
- build-web
strategy:
fail-fast: false
matrix:
TEST_GROUP: [1, 2, 3, 4, 5, 6, 7]
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true
ref: ${{ github.sha }}
fetch-depth: 2
- name: Run Playwright E2E Tests
uses: ./.github/actions/run-e2e-tests
env:
CANARY_FIRMWARE: "true"
with:
project: "web"
base-url: "https://dev.suite.sldev.cz/suite-web/fw-canary-788b960e2c6b5112230ded6129d69538/web/"
containers: "trezor-user-env-unix bitcoin-regtest electrum-regtest"
test-group: ${{ matrix.TEST_GROUP }}
fail-fast: false
additional-grep: "(?!.*@specificFirmware)"
currents-project-id: "Og0NOQ"
currents-record-key: ${{ secrets.CURRENTS_RECORD_KEY }}
currents-tags: "fw-canary"
e2e-passphrase: ${{ secrets.E2E_TEST_PASSPHRASE }}