Feat/22838 asset picker input in trading (swap & buy) #13660
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/connect*/**" | |
| # - "packages/suite-desktop*/**" | |
| - "packages/react-native-usb/**" | |
| # ignore unrelated github workflows config files | |
| - ".github/workflows/connect-analytics" | |
| - ".github/workflows/connect-common" | |
| - ".github/workflows/connect-examples" | |
| - ".github/workflows/connect-explorer" | |
| - ".github/workflows/connect-iframe" | |
| - ".github/workflows/connect-mobile" | |
| - ".github/workflows/connect-plugin-*" | |
| - ".github/workflows/connect-popup" | |
| - ".github/workflows/connect-theme" | |
| - ".github/workflows/connect-ui" | |
| - ".github/workflows/connect-webextension" | |
| - ".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@v4 | |
| - name: Generate GitHub App token | |
| id: trezor-bot-token | |
| uses: actions/create-github-app-token@v1 | |
| with: | |
| app-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' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Build and Upload Suite Web | |
| uses: ./.github/actions/build-web | |
| post-currents-link: | |
| if: github.repository == 'trezor/trezor-suite' && github.event_name == 'pull_request' && needs.check-previous-runs.outputs.skip_tests != 'true' | |
| runs-on: ubuntu-latest | |
| needs: | |
| - build-web | |
| - check-previous-runs | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Generate GitHub App token | |
| id: trezor-bot-token | |
| uses: actions/create-github-app-token@v1 | |
| with: | |
| app-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" | |
| run-e2e-suite-web-tests: | |
| if: github.repository == 'trezor/trezor-suite' && needs.check-previous-runs.outputs.skip_tests != 'true' | |
| runs-on: ubuntu-latest | |
| needs: | |
| - build-web | |
| - check-previous-runs | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| TEST_GROUP: [1, 2, 3, 4] | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: true | |
| ref: ${{ github.event.pull_request.head.sha }} | |
| fetch-depth: 2 | |
| - name: Run Playwright E2E Tests | |
| uses: ./.github/actions/run-e2e-tests | |
| with: | |
| project: "web" | |
| containers: "trezor-user-env-unix bitcoin-regtest electrum-regtest" | |
| test-group: ${{ matrix.TEST_GROUP }} | |
| additional-grep: "@webOnly" | |
| additional-grep-invert: "@nightlyOnly" | |
| fail-fast: 7 | |
| currents-project-id: "Og0NOQ" | |
| currents-record-key: ${{ secrets.CURRENTS_RECORD_KEY }} | |
| e2e-passphrase: ${{ secrets.E2E_TEST_PASSPHRASE }} | |
| run-e2e-suite-web-tests-t3w1: | |
| if: github.repository == 'trezor/trezor-suite' && needs.check-previous-runs.outputs.skip_tests != 'true' | |
| runs-on: ubuntu-latest | |
| needs: | |
| - build-web | |
| - check-previous-runs | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| TEST_GROUP: [1, 2, 3, 4] | |
| 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: | |
| EMULATOR_MODEL: T3W1 | |
| with: | |
| project: "web" | |
| containers: "trezor-user-env-unix bitcoin-regtest electrum-regtest" | |
| test-group: ${{ matrix.TEST_GROUP }} | |
| additional-grep: "@webOnly" | |
| additional-grep-invert: "@specificModel|@nightlyOnly" | |
| fail-fast: 7 | |
| currents-project-id: "Og0NOQ" | |
| currents-record-key: ${{ secrets.CURRENTS_RECORD_KEY }} | |
| currents-ci-build-id: "pr-run-t3w1-${{ github.run_id }}-${{ github.run_attempt }}" | |
| currents-tags: "T3W1" | |
| e2e-passphrase: ${{ secrets.E2E_TEST_PASSPHRASE }} |