-
-
Notifications
You must be signed in to change notification settings - Fork 259
140 lines (125 loc) · 4.15 KB
/
test-connect-popup.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
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-iframe/**"
- "packages/connect-explorer/**"
- "packages/connect-webextension/**"
- "packages/connect-web/**"
- "packages/connect-popup/**"
- "packages/connect-examples/webextension-mv2/**"
- "packages/connect-examples/webextension-mv3/**"
- "packages/connect-explorer-theme/**"
- "submodules/trezor-common/**"
- "yarn.lock"
- ".github/workflows/connect-dev-release-test.yml"
- ".github/workflows/template-connect-popup-test-params.yml"
- ".github/actions/release-connect/**"
- "docker/docker-connect-popup-ci.sh"
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
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"
methods:
needs: [build-deploy]
uses: ./.github/workflows/template-connect-popup-test-params.yml
with:
testName: methods.test
serverHostname: dev.suite.sldev.cz
runWebextension: ${{ github.event_name == 'schedule' }}
runCoreInPopup: true
buildOverview: true
popup-close:
needs: [build-deploy]
uses: ./.github/workflows/template-connect-popup-test-params.yml
with:
testName: popup-close.test
serverHostname: dev.suite.sldev.cz
runWebextension: true
runCoreInPopup: true
passphrase:
needs: [build-deploy]
uses: ./.github/workflows/template-connect-popup-test-params.yml
with:
testName: passphrase.test
serverHostname: dev.suite.sldev.cz
runWebextension: true
runCoreInPopup: true
popup-pages:
needs: [build-deploy]
uses: ./.github/workflows/template-connect-popup-test-params.yml
with:
testName: popup-pages.test
serverHostname: dev.suite.sldev.cz
browser-support:
needs: [build-deploy]
uses: ./.github/workflows/template-connect-popup-test-params.yml
with:
testName: browser-support.test
serverHostname: dev.suite.sldev.cz
permissions:
needs: [build-deploy]
uses: ./.github/workflows/template-connect-popup-test-params.yml
with:
testName: permissions.test
serverHostname: dev.suite.sldev.cz
transport:
needs: [build-deploy]
uses: ./.github/workflows/template-connect-popup-test-params.yml
with:
testName: transport.test
serverHostname: dev.suite.sldev.cz
unchained:
needs: [build-deploy]
uses: ./.github/workflows/template-connect-popup-test-params.yml
with:
testName: unchained.test
serverHostname: dev.suite.sldev.cz
runWeb: ${{ github.event_name == 'schedule' }}
webextension-examples:
needs: [build-deploy]
uses: ./.github/workflows/template-connect-popup-test-params.yml
with:
testName: webextension-example.test
serverHostname: dev.suite.sldev.cz
runWebextension: true
runWeb: false