39
39
description : ' Run only smoke tests'
40
40
required : true
41
41
default : false
42
- cardano_services_env :
42
+ cardano_mainnet_url :
43
43
type : choice
44
44
required : true
45
- default : dev
46
- description : ' cardano services environment to use'
45
+ default : dev-mainnet.lw.iog.io
46
+ description : ' cardano mainnet url to use'
47
47
options :
48
- - dev
49
- - staging
50
- - live
48
+ - dev-mainnet.lw.iog.io
49
+ - dev-mainnet.eu-central-1.lw.iog.io
50
+ - dev-mainnet.eu-west-1.lw.iog.io
51
+ - dev-mainnet.us-east-1.lw.iog.io
52
+ - dev-mainnet.us-east-2.lw.iog.io
53
+ - live-mainnet.lw.iog.io
54
+ - live-mainnet.eu-central-1.lw.iog.io
55
+ - live-mainnet.eu-west-1.lw.iog.io
56
+ - live-mainnet.us-east-1.lw.iog.io
57
+ - live-mainnet.us-east-2.lw.iog.io
58
+ - staging-mainnet.lw.iog.io
59
+ - staging-mainnet.eu-central-1.lw.iog.io
60
+ - staging-mainnet.eu-west-1.lw.iog.io
61
+ - staging-mainnet.us-east-1.lw.iog.io
62
+ - staging-mainnet.us-east-2.lw.iog.io
63
+ cardano_preprod_url :
64
+ type : choice
65
+ required : true
66
+ default : dev-preprod.lw.iog.io
67
+ description : ' cardano preprod url to use'
68
+ options :
69
+ - dev-preprod.lw.iog.io
70
+ - dev-preprod.eu-central-1.lw.iog.io
71
+ - dev-preprod.eu-west-1.lw.iog.io
72
+ - dev-preprod.us-east-1.lw.iog.io
73
+ - dev-preprod.us-east-2.lw.iog.io
74
+ - live-preprod.lw.iog.io
75
+ - live-preprod.eu-central-1.lw.iog.io
76
+ - live-preprod.eu-west-1.lw.iog.io
77
+ - live-preprod.us-east-1.lw.iog.io
78
+ - live-preprod.us-east-2.lw.iog.io
79
+ - staging-preprod.lw.iog.io
80
+ - staging-preprod.eu-central-1.lw.iog.io
81
+ - staging-preprod.eu-west-1.lw.iog.io
82
+ - staging-preprod.us-east-1.lw.iog.io
83
+ - staging-preprod.us-east-2.lw.iog.io
84
+ cardano_preview_url :
85
+ type : choice
86
+ required : true
87
+ default : dev-preview.lw.iog.io
88
+ description : ' cardano preview url to use'
89
+ options :
90
+ - dev-preview.lw.iog.io
91
+ - dev-preview.eu-central-1.lw.iog.io
92
+ - dev-preview.eu-west-1.lw.iog.io
93
+ - dev-preview.us-east-1.lw.iog.io
94
+ - dev-preview.us-east-2.lw.iog.io
95
+ - live-preview.lw.iog.io
96
+ - live-preview.eu-central-1.lw.iog.io
97
+ - live-preview.eu-west-1.lw.iog.io
98
+ - live-preview.us-east-1.lw.iog.io
99
+ - live-preview.us-east-2.lw.iog.io
51
100
52
- run-name : " E2E | os: Linux | browser: ${{ github.event.inputs.browser || 'chrome' }} | network: ${{ github.event.inputs.network || 'preprod' }} | #${{ github.run_number }} | smoke only: ${{ github.event.inputs.smoke_only || 'false' }} | cardano services env: ${{ github.event.inputs.cardano_services_env || 'dev' }} "
101
+ run-name : " E2E | os: Linux | browser: ${{ github.event.inputs.browser || 'chrome' }} | network: ${{ github.event.inputs.network || 'preprod' }} | #${{ github.run_number }} | smoke only: ${{ github.event.inputs.smoke_only || 'false' }}"
53
102
54
103
env :
55
104
BROWSER : ${{ github.event.inputs.browser || 'chrome' }}
58
107
DISPLAY : ' :99.0'
59
108
NODE_OPTIONS : --max-old-space-size=16384
60
109
BRANCH : ${{ github.ref_name }}
61
- CARDANO_SERVICES_ENV : ${{ github.event.inputs.cardano_services_env || 'dev' }}
62
- BUILD_ARTIFACT_NAME : lace-${{ github.event.inputs.cardano_services_env || 'dev' }}-${{ github.sha }}
110
+ CARDANO_MAINNET_URL : ${{ github.event.inputs.cardano_mainnet_url || 'dev-mainnet.lw.iog.io' }}
111
+ CARDANO_PREPROD_URL : ${{ github.event.inputs.cardano_preprod_url || 'cardano_preprod_url' }}
112
+ CARDANO_PREVIEW_URL : ${{ github.event.inputs.cardano_preview_url || 'dev-preview.lw.iog.io' }}
113
+ BUILD_ARTIFACT_NAME : lace-${{ github.event.inputs.cardano_preprod_url || 'cardano_preprod_url' }}-${{ github.sha }}
63
114
64
115
jobs :
65
116
setup :
@@ -83,6 +134,17 @@ jobs:
83
134
echo "Build artifact found"
84
135
echo "build_exists=true" >> $GITHUB_OUTPUT
85
136
fi
137
+
138
+ - name : Print run parameters
139
+ run : |
140
+ echo "Browser: ${{ github.event.inputs.browser || 'chrome' }}"
141
+ echo "Network: ${{ github.event.inputs.network || 'preprod' }}"
142
+ echo "Runner: ${{ github.event.inputs.runner || 'ubuntu-22.04' }}"
143
+ echo "Smoke only: ${{ github.event.inputs.smoke_only || 'false' }}"
144
+ echo "Cardano mainnet url: ${{ github.event.inputs.cardano_mainnet_url || 'dev-mainnet.lw.iog.io' }}"
145
+ echo "Cardano preprod url: ${{ github.event.inputs.cardano_preprod_url || 'dev-preprod.lw.iog.io' }}"
146
+ echo "Cardano preview url: ${{ github.event.inputs.cardano_preview_url || 'dev-preview.lw.iog.io' }}"
147
+ echo "Build artifact name: ${{ env.BUILD_ARTIFACT_NAME }}"
86
148
outputs :
87
149
runner : ${{ github.event.inputs.runner || 'ubuntu-22.04' }}
88
150
smoke_only : ${{ github.event.inputs.smoke_only || false }}
@@ -100,9 +162,9 @@ jobs:
100
162
if : needs.setup.outputs.build_exists == 'false'
101
163
uses : ./.github/shared/build
102
164
with :
103
- CARDANO_SERVICES_URL_MAINNET : ' https://${{ env.CARDANO_SERVICES_ENV }}-mainnet.lw.iog.io '
104
- CARDANO_SERVICES_URL_PREPROD : ' https://${{ env.CARDANO_SERVICES_ENV }}-preprod.lw.iog.io '
105
- CARDANO_SERVICES_URL_PREVIEW : ' https://${{ env.CARDANO_SERVICES_ENV }}-preview.lw.iog.io '
165
+ CARDANO_SERVICES_URL_MAINNET : ' https://${{ env.CARDANO_MAINNET_URL }}'
166
+ CARDANO_SERVICES_URL_PREPROD : ' https://${{ env.CARDANO_PREPROD_URL }}'
167
+ CARDANO_SERVICES_URL_PREVIEW : ' https://${{ env.CARDANO_PREVIEW_URL }}'
106
168
GITHUB_TOKEN : ${{ secrets.GH_TOKEN }}
107
169
LACE_EXTENSION_KEY : ${{ secrets.MANIFEST_PUBLIC_KEY }}
108
170
@@ -173,7 +235,9 @@ jobs:
173
235
browser=${BROWSER}
174
236
platform=Linux
175
237
smoke_only=${{ needs.setup.outputs.smoke_only }}
176
- cardano_services_env=${CARDANO_SERVICES_ENV}
238
+ cardano_mainnet_url=${CARDANO_MAINNET_URL}
239
+ cardano_preprod_url=${CARDANO_PREPROD_URL}
240
+ cardano_preview_url=${CARDANO_PREVIEW_URL}
177
241
" > environment.properties
178
242
179
243
- name : Publish allure report to S3
@@ -194,14 +258,14 @@ jobs:
194
258
- name : Add link to summary
195
259
run : |
196
260
echo "TEST RESULTS:"
197
- echo "https://${{ secrets.E2E_REPORTS_USER }}:${{ secrets.E2E_REPORTS_PASSWORD }}@${{ secrets.E2E_REPORTS_URL }}/all/linux/${{ env.BROWSER }}/${{ env.RUN }}/index.html | browser: ${{ env.BROWSER }} | network: ${{ env.NETWORK }} | platform: linux | smoke only: ${{ needs.setup.outputs.smoke_only }} | cardano services env: ${{ env.CARDANO_SERVICES_ENV }} " >> $GITHUB_STEP_SUMMARY
261
+ echo "https://${{ secrets.E2E_REPORTS_USER }}:${{ secrets.E2E_REPORTS_PASSWORD }}@${{ secrets.E2E_REPORTS_URL }}/all/linux/${{ env.BROWSER }}/${{ env.RUN }}/index.html | browser: ${{ env.BROWSER }} | network: ${{ env.NETWORK }} | platform: linux | smoke only: ${{ needs.setup.outputs.smoke_only }}" >> $GITHUB_STEP_SUMMARY
198
262
199
263
- name : Slack Notification
200
264
uses : rtCamp/action-slack-notify@v2.3.0
201
265
env :
202
266
SLACK_COLOR : " ${{ contains(needs.*.result, 'failure') && 'failure' || 'good' }}"
203
267
SLACK_ICON_EMOJI : ' :lace:'
204
- SLACK_MESSAGE : ' https://${{ secrets.E2E_REPORTS_USER }}:${{ secrets.E2E_REPORTS_PASSWORD }}@${{ secrets.E2E_REPORTS_URL }}/all/linux/${{ env.BROWSER }}/${{ env.RUN }}/index.html | browser: ${{ env.BROWSER }} | network: ${{ env.NETWORK }} | platform: linux | smoke only: ${{ needs.setup.outputs.smoke_only }} | cardano services env: ${{ env.CARDANO_SERVICES_ENV }} '
268
+ SLACK_MESSAGE : ' https://${{ secrets.E2E_REPORTS_USER }}:${{ secrets.E2E_REPORTS_PASSWORD }}@${{ secrets.E2E_REPORTS_URL }}/all/linux/${{ env.BROWSER }}/${{ env.RUN }}/index.html | browser: ${{ env.BROWSER }} | network: ${{ env.NETWORK }} | platform: linux | smoke only: ${{ needs.setup.outputs.smoke_only }}'
205
269
SLACK_TITLE : ' Test automation results :rocket:'
206
270
SLACK_USERNAME : lace-qa-bot
207
271
SLACK_WEBHOOK : ${{ secrets.SLACK_WEBHOOK }}
0 commit comments