chore: adjust path in workflow, adjust cypress package.json
parent
2876489c16
commit
8d99e1815a
|
@ -71,8 +71,8 @@ jobs:
|
||||||
|
|
||||||
- name: OAuth2 Mock Server
|
- name: OAuth2 Mock Server
|
||||||
run: |
|
run: |
|
||||||
yarn --cwd ../etc/oauth2-server-mock
|
yarn --cwd $(git rev-parse --show-toplevel)/etc/oauth2-server-mock
|
||||||
RUNNER_TRACKING_ID="" && (nohup yarn --cwd ../etc/oauth2-server-mock start > oauth2-mock.log 2>&1 &)
|
RUNNER_TRACKING_ID="" && (nohup yarn --cwd $(git rev-parse --show-toplevel)/etc/oauth2-server-mock start > oauth2-mock.log 2>&1 &)
|
||||||
|
|
||||||
- name: Chronograf
|
- name: Chronograf
|
||||||
run: |
|
run: |
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
"test:watch": "jest --watch",
|
"test:watch": "jest --watch",
|
||||||
"test:debug": "node --inspect-brk node_modules/.bin/jest --runInBand --watch",
|
"test:debug": "node --inspect-brk node_modules/.bin/jest --runInBand --watch",
|
||||||
"lint": "yarn run eslint; yarn run tsc",
|
"lint": "yarn run eslint; yarn run tsc",
|
||||||
"test:e2e": "nc -z ${OAUTH2_HOSTNAME:-localhost} ${OAUTH2_PORT:-8087} && CYPRESS_oauth2ServerURL=http://${OAUTH2_HOSTNAME:-localhost}:${OAUTH2_PORT:-8087} cypress run --browser chrome --headless --reporter junit --reporter-options 'mochaFile=cypress/results/results-[hash].xml' || echo 'Unable to contact OAuth2 Server. Type \"yarn test:oauth-mock\" to start it.'",
|
"test:e2e": "nc -z ${OAUTH2_HOSTNAME:=localhost} ${OAUTH2_PORT:=8087} && CYPRESS_oauth2ServerURL=http://${OAUTH2_HOSTNAME}:${OAUTH2_PORT} cypress run --browser chrome --headless --reporter junit --reporter-options 'mochaFile=cypress/results/results-[hash].xml' || echo 'Unable to contact OAuth2 Server. Type \"yarn test:oauth-mock\" to start it.'",
|
||||||
"test:e2e:headed": "nc -z ${OAUTH2_HOSTNAME:-localhost} ${OAUTH2_PORT:-8087} && CYPRESS_oauth2ServerURL=http://${OAUTH2_HOSTNAME:-localhost}:${OAUTH2_PORT:-8087} cypress open --browser chrome || echo 'Unable to contact OAuth2 Server. Type \"yarn test:oauth-mock\" to start it.'",
|
"test:e2e:headed": "nc -z ${OAUTH2_HOSTNAME:-localhost} ${OAUTH2_PORT:-8087} && CYPRESS_oauth2ServerURL=http://${OAUTH2_HOSTNAME:-localhost}:${OAUTH2_PORT:-8087} cypress open --browser chrome || echo 'Unable to contact OAuth2 Server. Type \"yarn test:oauth-mock\" to start it.'",
|
||||||
"test:oauth-mock": "yarn --cwd ../etc/oauth2-server-mock start",
|
"test:oauth-mock": "yarn --cwd ../etc/oauth2-server-mock start",
|
||||||
"eslint": "eslint src",
|
"eslint": "eslint src",
|
||||||
|
|
Loading…
Reference in New Issue