Browse Source

chore(fix) cypress path corrections for ci-cd

Signed-off-by: Raju Udava <sivadstala@gmail.com>
pull/714/head
Raju Udava 3 years ago
parent
commit
bb92ca570c
  1. 2
      .github/workflows/ci-cd.yml
  2. 2
      package.json
  3. 9
      scripts/cypress.json

2
.github/workflows/ci-cd.yml

@ -44,6 +44,7 @@ jobs:
spec: "./scripts/cypress/integration/test/masterSuiteRest.js"
wait-on: "http://localhost:8080, http://localhost:3000/_nuxt/runtime.js"
wait-on-timeout: 1200
config-file: scripts/cypress.json
cypress-graphql-run:
runs-on: ubuntu-20.04
steps:
@ -78,6 +79,7 @@ jobs:
spec: "./scripts/cypress/integration/test/masterSuiteGql.js"
wait-on: "http://localhost:8080, http://localhost:3000/_nuxt/runtime.js"
wait-on-timeout: 1200
config-file: scripts/cypress.json
docker:
runs-on: ubuntu-latest
steps:

2
package.json

@ -9,7 +9,7 @@
"scripts": {
"start:api": "cd ./packages/nocodb; npm install; npm run watch:run",
"start:web": "cd ./packages/nc-gui; npm install; npm run dev",
"cypress:run": "cypress run",
"cypress:run": "cypress run --config-file ./scripts/cypress.json",
"cypress:open": "cypress open",
"test:travis": "git log --pretty=format:'%h' -n 1 --skip 1 | xargs lerna run test:travis --since",
"lerna:install": "git log --pretty=format:'%h' -n 1 --skip 1 | xargs lerna bootstrap --ignore nc-cli --since",

9
scripts/cypress.json

@ -21,5 +21,12 @@
"xcdbREST",
"xcdbREST",
"can configure multiple too, seperated by a . as in extREST.extGQL"
]
],
"fixturesFolder": "scripts/cypress/fixtures",
"integrationFolder": "scripts/cypress/integration",
"pluginsFile": "scripts/cypress/plugins/index.js",
"screenshotsFolder": "scripts/cypress/screenshots",
"videosFolder": "scripts/cypress/videos",
"downloadsFolder": "scripts/cypress/downloads",
"supportFile": "scripts/cypress/support/index.js"
}

Loading…
Cancel
Save