Skip to content

[Build/Test] Connect Explorer #45

[Build/Test] Connect Explorer

[Build/Test] Connect Explorer #45

name: "[Build/Test] Connect Explorer"
permissions:
id-token: write # for fetching the OIDC token
contents: read # for actions/checkout
on:
schedule:
# Runs at midnight UTC every day at 01:00 AM CET
- cron: "0 0 * * *"
push:
branches: [release/connect/**]
pull_request:
paths:
- "packages/blockchain-link/**"
- "packages/connect/**"
- "packages/connect-common/**"
- "packages/connect-iframe/**"
- "packages/connect-explorer/**"
- "packages/connect-webextension/**"
- "packages/connect-web/**"
- "packages/transport/**"
- "packages/utxo-lib/**"
- "packages/utils/**"
- "packages/connect-examples/webextension-mv2/**"
- "packages/connect-examples/webextension-mv3/**"
- "submodules/trezor-common/**"
- "yarn.lock"
- ".github/workflows/connect-dev-release-test.yml"
- ".github/workflows/template-connect-popup-test-params.yml"
- ".github/workflows/template-connect-build-deploy.yml"
- "docker/docker-connect-popup-ci.sh"
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-$${{ github.head_ref || github.run_id }}
cancel-in-progress: true
env:
DEV_SERVER_HOSTNAME: "dev.suite.sldev.cz"
jobs:
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: echo "::set-output name=branch::${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}"
build-deploy:
needs: [extract-branch]
uses: ./.github/workflows/template-connect-build-deploy.yml
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 }}"
methods:
needs: [build-deploy]
uses: ./.github/workflows/template-connect-popup-test-params.yml
with:
test-name: methods.test
DEV_SERVER_HOSTNAME: dev.suite.sldev.cz
run-webextension: true
build-overview: true
popup-close:
needs: [build-deploy]
uses: ./.github/workflows/template-connect-popup-test-params.yml
with:
test-name: popup-close.test
DEV_SERVER_HOSTNAME: dev.suite.sldev.cz
run-webextension: true
passphrase:
needs: [build-deploy]
uses: ./.github/workflows/template-connect-popup-test-params.yml
with:
test-name: passphrase.test
DEV_SERVER_HOSTNAME: dev.suite.sldev.cz
# currently flaky, run only in nightly
run-webextension: ${{ github.event_name == 'schedule' }}
popup-pages:
needs: [build-deploy]
uses: ./.github/workflows/template-connect-popup-test-params.yml
with:
test-name: popup-pages.test
DEV_SERVER_HOSTNAME: dev.suite.sldev.cz
browser-support:
needs: [build-deploy]
uses: ./.github/workflows/template-connect-popup-test-params.yml
with:
test-name: browser-support.test
DEV_SERVER_HOSTNAME: dev.suite.sldev.cz
permissions:
needs: [build-deploy]
uses: ./.github/workflows/template-connect-popup-test-params.yml
with:
test-name: permissions.test
DEV_SERVER_HOSTNAME: dev.suite.sldev.cz
transport:
needs: [build-deploy]
uses: ./.github/workflows/template-connect-popup-test-params.yml
with:
test-name: transport.test
DEV_SERVER_HOSTNAME: dev.suite.sldev.cz
unchained:
needs: [build-deploy]
uses: ./.github/workflows/template-connect-popup-test-params.yml
with:
test-name: unchained.test
DEV_SERVER_HOSTNAME: dev.suite.sldev.cz
webextension-examples:
needs: [build-deploy]
uses: ./.github/workflows/template-connect-popup-test-params.yml
with:
test-name: webextension-example.test
DEV_SERVER_HOSTNAME: dev.suite.sldev.cz
run-webextension: true
run-web: false