fix(suite-native): use fallback address for dex approval #22877
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: "[Test] PR Suite Web e2e tests" | |
| # Executed as part of PR checks | |
| # Builds/deploys the web app to dev.suite.sldev.cz/suite-web/<branch-name>/web | |
| # Runs e2e test suite for Suite Web, limited to webOnly tests | |
| permissions: | |
| id-token: write # for fetching the OIDC token | |
| contents: read # for actions/checkout | |
| pull-requests: write # for posting comments | |
| # run only if there are changes in suite or related libs paths | |
| on: | |
| pull_request: | |
| branches: | |
| - develop | |
| paths-ignore: | |
| - "suite-native/**" | |
| # - "packages/suite-desktop*/**" | |
| - "packages/react-native-usb/**" | |
| # ignore unrelated github workflows config files | |
| - ".github/workflows/connect-examples" | |
| - ".github/workflows/connect-mobile" | |
| - ".github/workflows/connect-plugin-*" | |
| - ".github/workflows/connect-theme" | |
| - ".github/workflows/suite-native*" | |
| - ".github/workflows/build-desktop*" | |
| - ".github/workflows/release*" | |
| - ".github/workflows/template*" | |
| - ".github/actions/release*/**" | |
| - "**.md" | |
| 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: | |
| check-previous-runs: | |
| if: github.repository == 'trezor/trezor-suite' | |
| runs-on: ubuntu-latest | |
| outputs: | |
| skip_tests: ${{ steps.check-previous-runs.outputs.skip_tests }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | |
| - name: Generate GitHub App token | |
| id: trezor-bot-token | |
| uses: actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3 | |
| with: | |
| client-id: ${{ secrets.TREZOR_BOT_APP_ID }} | |
| private-key: ${{ secrets.TREZOR_BOT_PRIVATE_KEY }} | |
| - name: Check previous runs | |
| id: check-previous-runs | |
| uses: "./.github/actions/check-previous-test-runs" | |
| with: | |
| github_token: ${{ steps.trezor-bot-token.outputs.token }} | |
| pr_branch: ${{ github.head_ref }} | |
| pr_created: ${{ github.event.pull_request.created_at }} | |
| repo: ${{ github.repository }} | |
| workflow_name: ${{ github.workflow }} | |
| run_attempt: ${{ github.run_attempt }} | |
| 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 }} | |
| 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@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | |
| 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" | |
| suiteWebUrl: "https://dev.suite.sldev.cz/suite-web/${{ needs.extract-branch.outputs.branch }}/web" | |
| post-currents-pr-info: | |
| if: github.repository == 'trezor/trezor-suite' && github.event_name == 'pull_request' && needs.check-previous-runs.outputs.skip_tests != 'true' | |
| runs-on: ubuntu-latest | |
| concurrency: | |
| group: post-currents-pr-info-${{ github.event.pull_request.number }} | |
| cancel-in-progress: false | |
| needs: | |
| - build-web | |
| - build-connect | |
| - check-previous-runs | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | |
| - name: Install Node.js | |
| uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6 | |
| with: | |
| node-version-file: ".nvmrc" | |
| - name: Generate GitHub App token | |
| id: trezor-bot-token | |
| uses: actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3 | |
| with: | |
| client-id: ${{ secrets.TREZOR_BOT_APP_ID }} | |
| private-key: ${{ secrets.TREZOR_BOT_PRIVATE_KEY }} | |
| - name: Post Currents link | |
| uses: ./.github/actions/post-currents-link | |
| with: | |
| github_token: ${{ steps.trezor-bot-token.outputs.token }} | |
| project: "web" | |
| currents-project-id: "Og0NOQ" | |
| - name: Post Suite Web preview link | |
| uses: ./.github/actions/post-suite-web-preview-link | |
| with: | |
| github_token: ${{ steps.trezor-bot-token.outputs.token }} | |
| dev-server-url: ${{ env.DEV_SERVER_URL }} | |
| - name: Post quarantine list | |
| uses: ./.github/actions/post-quarantine-list | |
| with: | |
| github_token: ${{ steps.trezor-bot-token.outputs.token }} | |
| currents_api_key: ${{ secrets.CURRENTS_API_KEY }} | |
| project_name: "web" | |
| run-e2e-suite-web-tests: | |
| if: github.repository == 'trezor/trezor-suite' && needs.check-previous-runs.outputs.skip_tests != 'true' | |
| needs: | |
| - build-web | |
| - build-connect | |
| - check-previous-runs | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| TEST_GROUP: [1, 2, 3, 4, 5] | |
| uses: ./.github/workflows/template-suite-run-e2e.yml | |
| with: | |
| target: "web" | |
| pw-config: "./playwright-config/playwright-web-pr.config.ts" | |
| test-group: ${{ matrix.TEST_GROUP }} | |
| fail-fast: "7" | |
| currents-project-id: "Og0NOQ" | |
| download-artifact-name: "connect-explorer-webextension-dev.suite.sldev.cz" | |
| secrets: | |
| currents-record-key: ${{ secrets.CURRENTS_RECORD_KEY }} | |
| e2e-passphrase: ${{ secrets.E2E_TEST_PASSPHRASE }} |