From c7a541918aa274965693cedb261031ea9176faf9 Mon Sep 17 00:00:00 2001 From: kolaente Date: Sun, 30 Jan 2022 22:19:28 +0100 Subject: [PATCH 1/2] feat: add cypress dashboard record --- .drone.yml | 6 ++++-- cypress.json | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.drone.yml b/.drone.yml index 4090e6a8f..d1a5b8fbf 100644 --- a/.drone.yml +++ b/.drone.yml @@ -116,10 +116,12 @@ steps: YARN_CACHE_FOLDER: .cache/yarn/ CYPRESS_CACHE_FOLDER: .cache/cypress/ CYPRESS_DEFAULT_COMMAND_TIMEOUT: 60000 + CYPRESS_KEY: + from_secret: cypress_project_key commands: - sed -i 's/localhost/api/g' dist/index.html - yarn serve:dist & npx wait-on http://localhost:5000 - - yarn test:frontend --browser chrome + - yarn test:frontend --browser chrome --record --key $CYPRESS_KEY depends_on: - dependencies - build-prod @@ -665,6 +667,6 @@ steps: from_secret: crowdin_key --- kind: signature -hmac: 188ee90100c5fc5922a445e531e7a47453121edddb2a64a182eb23ed2bf602de +hmac: fc7f99db762292b19a5cb01ba8f686c5348f9824473850c7f6ea4e0fba3a57a2 ... diff --git a/cypress.json b/cypress.json index 27f12495c..28fd022c1 100644 --- a/cypress.json +++ b/cypress.json @@ -7,5 +7,6 @@ "video": false, "retries": { "runMode": 2 - } + }, + "projectId": "181c7x" } -- 2.40.1 From d2db8ccba1f94dc795c94b7acd12cd0225f6dd5f Mon Sep 17 00:00:00 2001 From: kolaente Date: Sun, 30 Jan 2022 22:24:02 +0100 Subject: [PATCH 2/2] feat: use cypress record key from env --- .drone.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.drone.yml b/.drone.yml index d1a5b8fbf..a85f44f5d 100644 --- a/.drone.yml +++ b/.drone.yml @@ -116,12 +116,12 @@ steps: YARN_CACHE_FOLDER: .cache/yarn/ CYPRESS_CACHE_FOLDER: .cache/cypress/ CYPRESS_DEFAULT_COMMAND_TIMEOUT: 60000 - CYPRESS_KEY: + CYPRESS_RECORD_KEY: from_secret: cypress_project_key commands: - sed -i 's/localhost/api/g' dist/index.html - yarn serve:dist & npx wait-on http://localhost:5000 - - yarn test:frontend --browser chrome --record --key $CYPRESS_KEY + - yarn test:frontend --browser chrome --record depends_on: - dependencies - build-prod @@ -667,6 +667,6 @@ steps: from_secret: crowdin_key --- kind: signature -hmac: fc7f99db762292b19a5cb01ba8f686c5348f9824473850c7f6ea4e0fba3a57a2 +hmac: e8748058b09d57b4d9f53dc40fb163f1719a4177d392439a62b1c198ba1502a0 ... -- 2.40.1