diff --git a/.gitignore b/.gitignore index 8ae5ebc4..6fc9aebe 100644 --- a/.gitignore +++ b/.gitignore @@ -22,4 +22,5 @@ secrets test-run-details.json cypress/fixtures/test-run-details.json env_variables/*.env.json +env_variables/* !env_variables/template.env.json \ No newline at end of file diff --git a/package.json b/package.json index 0a899088..da8f228d 100644 --- a/package.json +++ b/package.json @@ -4,14 +4,14 @@ "description": "e2e testing", "main": "index.js", "scripts": { - "pretest": "node run-script.js pretest", - "generate:report": "node run-script.js generate:report", - "cy:open:local": "node run-script.js cy:open local", - "tag:stable:local": "node run-script.js tag:stable local", - "tag:stable:pr:local": "node run-script.js tag:stable:pr local", - "tag:stable:release:local": "node run-script.js tag:stable:release local", - "tag:only:local": "node run-script.js tag:only local", - "tag:unstable:local": "node run-script.js tag:unstable local", + "pretest": "bash scripts/script.sh pretest", + "generate:report": "bash scripts/script.sh generate:report", + "cy:open:local": "bash scripts/script.sh cy:open local", + "tag:stable:local": "bash scripts/script.sh tag:stable local", + "tag:stable:pr:local": "bash scripts/script.sh tag:stable:pr local", + "tag:stable:release:local": "bash scripts/script.sh tag:stable:release local", + "tag:only:local": "bash scripts/script.sh tag:only local", + "tag:unstable:local": "bash scripts/script.sh tag:unstable local", "cy:open:ci": "scripts/script.sh cy:open ci", "tag:stable:ci": "scripts/script.sh tag:stable ci", "tag:stable:pr:ci": "scripts/script.sh tag:stable:pr ci", diff --git a/run-script.js b/run-script.js deleted file mode 100644 index a0ac5428..00000000 --- a/run-script.js +++ /dev/null @@ -1,13 +0,0 @@ -const { exec } = require('child_process') -const isWindows = process.platform === 'win32' - -const scriptPath = './scripts/script.sh' -const args = process.argv.slice(2).join(' ') - -if (isWindows) { - // On Windows, use the "bash" command to run the script - exec(`bash ${scriptPath} ${args}`) -} else { - // On non-Windows platforms, execute the script directly - exec(`bash ${scriptPath} ${args}`) -}