mirror of
https://github.com/trezor/trezor-suite.git
synced 2026-03-03 05:55:03 +01:00
102 lines
3.3 KiB
YAML
102 lines
3.3 KiB
YAML
name: "[Test] Release Suite Web e2e tests"
|
|
# Triggered by push to release branch
|
|
# Builds/deploys the web app to dev.suite.sldev.cz/suite-web/<branch-name>/web
|
|
# Runs e2e full test suite for Suite Web
|
|
|
|
permissions:
|
|
id-token: write # for fetching the OIDC token
|
|
contents: read # for actions/checkout
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- release/2*
|
|
workflow_dispatch:
|
|
inputs:
|
|
publish_results_to_github:
|
|
description: "Publish test report to GitHub Project"
|
|
required: false
|
|
default: false
|
|
type: boolean
|
|
workflow_call:
|
|
inputs:
|
|
publish_results_to_github:
|
|
description: "Publish test report to GitHub Project"
|
|
required: false
|
|
default: false
|
|
type: boolean
|
|
|
|
concurrency:
|
|
group: web-${{ 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
|
|
|
|
extract-branch:
|
|
if: github.repository == 'trezor/trezor-suite'
|
|
runs-on: ubuntu-latest
|
|
outputs:
|
|
branch: ${{ steps.extract_branch.outputs.branch }}
|
|
release_build: ${{ steps.extract_branch.outputs.release_build }}
|
|
steps:
|
|
- name: Extract branch name
|
|
id: extract_branch
|
|
run: |
|
|
BRANCH_NAME="${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}"
|
|
echo "branch=$BRANCH_NAME" >> $GITHUB_OUTPUT
|
|
echo "release_build=${BRANCH_NAME}-${GITHUB_SHA:0:7}" >> $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"
|
|
connectPopupUrl: "https://dev.suite.sldev.cz/suite-web/${{ needs.extract-branch.outputs.branch }}/web/connect-popup"
|
|
|
|
run-e2e-suite-web-tests:
|
|
if: github.repository == 'trezor/trezor-suite'
|
|
needs:
|
|
- build-web
|
|
- build-connect
|
|
- extract-branch
|
|
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.config.ts"
|
|
test-group: ${{ matrix.TEST_GROUP }}
|
|
fail-fast: "false"
|
|
currents-project-id: "Og0NOQ"
|
|
release-build: ${{ needs.extract-branch.outputs.release_build }}
|
|
run-reporter: ${{ inputs.publish_results_to_github == true }}
|
|
secrets:
|
|
currents-record-key: ${{ secrets.CURRENTS_RECORD_KEY }}
|
|
e2e-passphrase: ${{ secrets.E2E_TEST_PASSPHRASE }}
|
|
e2e-passphrase-live: ${{ secrets.E2E_TEST_PASSPHRASE_LIVE }}
|
|
trezor-bot-app-id: ${{ secrets.TREZOR_BOT_APP_ID }}
|
|
trezor-bot-private-key: ${{ secrets.TREZOR_BOT_PRIVATE_KEY }}
|