Files
trezor-suite/.github/workflows/test-suite-web-e2e-nightly.yml

85 lines
2.7 KiB
YAML

name: "[Test] Nightly 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 with T3T1 and T3W1 emulators
# Runs full e2e test suite for Suite Web against FW built nightly from main branch with T3T1 and T3W1 emulators
# Runs database migration tests
permissions:
id-token: write # for fetching the OIDC token
contents: read # for actions/checkout
on:
schedule:
- cron: "0 0 * * 1-5"
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'
uses: ./.github/workflows/build-suite-web-e2e.yml
with:
instrument-code: "true"
extract-branch:
if: github.repository == 'trezor/trezor-suite'
runs-on: ubuntu-latest
outputs:
branch: ${{ steps.extract_branch.outputs.branch }}
steps:
- name: Extract branch name
id: extract_branch
run: |
BRANCH_NAME="${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}"
echo "branch=$BRANCH_NAME" >> $GITHUB_OUTPUT
build-connect:
needs: [extract-branch]
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- uses: actions/checkout@v4
with:
ref: ${{ needs.extract-branch.outputs.branch }}
- name: Release connect to dev environment
uses: ./.github/actions/release-connect
with:
awsRoleToAssume: "arn:aws:iam::538326561891:role/gh_actions_trezor_suite_dev_deploy"
awsRegion: "eu-central-1"
serverHostname: "dev.suite.sldev.cz"
serverPath: "connect/${{ needs.extract-branch.outputs.branch }}"
uploadArtifacts: "true"
buildArtifacts: "true"
nodeEnv: "development"
run-e2e-suite-web-tests:
if: github.repository == 'trezor/trezor-suite'
needs:
- build-web
- build-connect
strategy:
fail-fast: false
matrix:
TEST_GROUP: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
uses: ./.github/workflows/template-suite-run-e2e.yml
with:
target: "web"
pw-config: "./playwright-config/playwright-web-nightly.config.ts"
test-group: ${{ matrix.TEST_GROUP }}
fail-fast: "false"
currents-project-id: "Og0NOQ"
currents-ci-build-id: "nightly-run-${{ github.run_id }}-${{ github.run_attempt }}"
enable-coverage: "true"
secrets:
currents-record-key: ${{ secrets.CURRENTS_RECORD_KEY }}
e2e-passphrase: ${{ secrets.E2E_TEST_PASSPHRASE }}