build: add Cypress parallelization with obfuscated record key (#12534)

This commit is contained in:
Rob DiCiuccio
2021-01-15 12:18:18 -08:00
committed by GitHub
parent fc5e311842
commit b1fcd61b73
2 changed files with 19 additions and 3 deletions

View File

@@ -164,9 +164,10 @@ cypress-run() {
export TERM="xterm"
say "::group::Run Cypress for [$page]"
if [[ -z $CYPRESS_RECORD_KEY ]]; then
if [[ -z $CYPRESS_KEY ]]; then
$cypress --spec "cypress/integration/$page" --browser "$browser"
else
export CYPRESS_RECORD_KEY=`echo $CYPRESS_KEY | base64 --decode`
# additional flags for Cypress dashboard recording
$cypress --spec "cypress/integration/$page" --browser "$browser" \
--record --group "$group" --tag "${GITHUB_REPOSITORY},${GITHUB_EVENT_NAME}" \