chore: adjust path in workflow, adjust cypress package.json

pull/5911/head
k3yi0 2022-05-10 10:39:51 +02:00
parent 2876489c16
commit 8d99e1815a
2 changed files with 3 additions and 3 deletions

View File

@ -71,8 +71,8 @@ jobs:
- name: OAuth2 Mock Server
run: |
yarn --cwd ../etc/oauth2-server-mock
RUNNER_TRACKING_ID="" && (nohup yarn --cwd ../etc/oauth2-server-mock start > oauth2-mock.log 2>&1 &)
yarn --cwd $(git rev-parse --show-toplevel)/etc/oauth2-server-mock
RUNNER_TRACKING_ID="" && (nohup yarn --cwd $(git rev-parse --show-toplevel)/etc/oauth2-server-mock start > oauth2-mock.log 2>&1 &)
- name: Chronograf
run: |

View File

@ -16,7 +16,7 @@
"test:watch": "jest --watch",
"test:debug": "node --inspect-brk node_modules/.bin/jest --runInBand --watch",
"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:oauth-mock": "yarn --cwd ../etc/oauth2-server-mock start",
"eslint": "eslint src",