From 35aed620ea2fef4938ce3a06397560a9697e11f9 Mon Sep 17 00:00:00 2001 From: Dan Grebb Date: Sun, 24 Sep 2023 19:08:44 -0400 Subject: [PATCH] chore(testing): updates gh vars and workflow for ref generation --- _ci/backstop/package.json | 1 + _ci/backstop/scenarios/vars.js | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/_ci/backstop/package.json b/_ci/backstop/package.json index 5b6335b55..95d79044d 100644 --- a/_ci/backstop/package.json +++ b/_ci/backstop/package.json @@ -11,6 +11,7 @@ "mon": "pm2 monit", "pm2": "node ./node_modules/pm2/bin/pm2", "ref": "ENVIRONMENT=\"$ENV\" backstop reference --config=backstop.config.js", + "ref.gh": "ENVIRONMENT=gh-\"$ENV\" backstop reference --config=backstop.config.js", "remote": "ENVIRONMENT=\"$ENV\" backstop remote --config=backstop.config.js", "serve": "http-server -b -S -p 443 -a local.dgrebb.com -C ../../front/local.dgrebb.com.crt -K ../../front/local.dgrebb.com.key --cors='*' ../../front/build", "start": "ENVIRONMENT=\"$ENV\" pm2 start ecosystem.config.js && pm2 monit", diff --git a/_ci/backstop/scenarios/vars.js b/_ci/backstop/scenarios/vars.js index c4e33112f..100d55c64 100644 --- a/_ci/backstop/scenarios/vars.js +++ b/_ci/backstop/scenarios/vars.js @@ -10,7 +10,7 @@ switch (env) { break; case 'gh-staging': - ID = 'Github STG'; + ID = 'GitHub STG'; URL = 'https://stg.dgrebb.com'; envDir = 'gh-stg'; break; @@ -22,7 +22,7 @@ switch (env) { break; case 'gh-production': - ID = 'Github PRD'; + ID = 'GitHub PRD'; URL = 'https://www.dgrebb.com'; envDir = 'gh-prod'; break;