mirror of
https://github.com/trezor/trezor-suite.git
synced 2026-02-20 00:33:07 +01:00
63 lines
1.9 KiB
YAML
63 lines
1.9 KiB
YAML
# todo: at the moment it is build only. I don't want to change the name not to mess with existing runs in github
|
|
name: "[Build/Test] connect-popup e2e"
|
|
|
|
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/connect/**"
|
|
- "packages/connect-common/**"
|
|
- "packages/connect-data/**"
|
|
- "packages/connect-explorer/**"
|
|
- "packages/connect-web/**"
|
|
- "packages/connect-explorer-theme/**"
|
|
- "packages/trezor-user-env-link/**"
|
|
- "submodules/trezor-common/**"
|
|
- ".github/actions/release-connect/**"
|
|
workflow_dispatch:
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
|
|
cancel-in-progress: true
|
|
|
|
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: |
|
|
BRANCH_NAME="${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}"
|
|
echo "branch=$BRANCH_NAME" >> $GITHUB_OUTPUT
|
|
|
|
build-deploy:
|
|
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"
|