feat: update cypress version and config (#38892)

This commit is contained in:
Mrugesh Mohapatra
2020-06-10 01:47:13 +05:30
committed by GitHub
parent fd2ca5cf40
commit 0fd8b7a6db
4 changed files with 898 additions and 891 deletions

View File

@ -14,6 +14,8 @@ jobs:
env: env:
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }} CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# our .npmrc sets a default version to 0, and prevents download. This installs it.
CYPRESS_INSTALL_BINARY: '4.6.0'
name: Cypress run name: Cypress run
runs-on: ubuntu-latest runs-on: ubuntu-latest
services: services:
@ -24,11 +26,11 @@ jobs:
- 27017:27017 - 27017:27017
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v1 uses: actions/checkout@v2
- name: Set up environment - name: Set up environment
run: cp sample.env .env run: cp sample.env .env
- name: Cypress run - name: Cypress run
uses: cypress-io/github-action@v1 uses: cypress-io/github-action@v1
with: with:

1
.gitignore vendored
View File

@ -111,6 +111,7 @@ coverage
# Cypress.io # Cypress.io
cypress/videos cypress/videos
cypress/screenshots
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) # Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt .grunt

1759
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -16,10 +16,13 @@
"clean:server": "shx rm -rf ./api-server/lib", "clean:server": "shx rm -rf ./api-server/lib",
"clean:client": "cd ./client && npm run clean", "clean:client": "cd ./client && npm run clean",
"clean:gatsby-site": "npm run clean:client", "clean:gatsby-site": "npm run clean:client",
"precypress": "node cypress-install.js", "precypress": "node ./cypress-install.js",
"cypress": "cypress", "cypress": "cypress",
"cypress:install": "cypress install && echo 'for use with cypress-install.js'", "cypress:install": "cypress install && echo 'for use with ./cypress-install.js'",
"cypress:run": "npm run cypress -- run --config baseUrl=http://localhost:8000", "cypress:dev:run": "npm run cypress -- run --config baseUrl=http://localhost:8000",
"cypress:dev:watch": "npm run cypress -- open --config baseUrl=http://localhost:8000",
"cypress:prd:run": "npm run cypress -- run --config baseUrl=http://localhost:8000",
"cypress:prd:watch": "npm run cypress -- open --config baseUrl=http://localhost:8000",
"develop": "npm-run-all ensure-env -p develop:*", "develop": "npm-run-all ensure-env -p develop:*",
"develop:client": "cd ./client && npm run develop", "develop:client": "cd ./client && npm run develop",
"develop:server": "cd ./api-server && npm run develop", "develop:server": "cd ./api-server && npm run develop",
@ -52,10 +55,8 @@
"start": "npm-run-all ensure-env -p develop:server serve:client", "start": "npm-run-all ensure-env -p develop:server serve:client",
"test": "npm-run-all -p test:*", "test": "npm-run-all -p test:*",
"test:client": "cd ./client && npm test && cd ../", "test:client": "cd ./client && npm test && cd ../",
"test:client:e2e": "cd ./client && npm run e2e:ci && cd ../",
"test:curriculum": "cd ./curriculum && npm test && cd ../", "test:curriculum": "cd ./curriculum && npm test && cd ../",
"test:guide-formatting": "node ./tools/scripts/ci/ensure-guide-formatting.js", "test:guide-formatting": "node ./tools/scripts/ci/ensure-guide-formatting.js",
"test:lint": "echo 'Warning: TODO - Define Linting tests.'",
"test:search-indexing": "jest ./search-indexing", "test:search-indexing": "jest ./search-indexing",
"test:server": "cd ./api-server && npm test && cd ../", "test:server": "cd ./api-server && npm test && cd ../",
"test:tools": "jest ./tools", "test:tools": "jest ./tools",
@ -64,8 +65,8 @@
"devDependencies": { "devDependencies": {
"@freecodecamp/eslint-config": "^2.0.2", "@freecodecamp/eslint-config": "^2.0.2",
"babel-eslint": "^10.1.0", "babel-eslint": "^10.1.0",
"cross-env": "^5.2.0", "cross-env": "^7.0.2",
"cypress": "^3.8.3", "cypress": "^4.6.0",
"debug": "^4.1.1", "debug": "^4.1.1",
"docsify-cli": "^4.4.0", "docsify-cli": "^4.4.0",
"dotenv": "^6.2.0", "dotenv": "^6.2.0",
@ -76,16 +77,16 @@
"eslint-plugin-jsx-a11y": "^6.2.3", "eslint-plugin-jsx-a11y": "^6.2.3",
"eslint-plugin-prefer-object-spread": "^1.2.1", "eslint-plugin-prefer-object-spread": "^1.2.1",
"eslint-plugin-prettier": "^3.1.3", "eslint-plugin-prettier": "^3.1.3",
"eslint-plugin-react": "^7.19.0", "eslint-plugin-react": "^7.20.0",
"eslint-plugin-react-hooks": "^2.0.1", "eslint-plugin-react-hooks": "^2.0.1",
"execa": "^4.0.1", "execa": "^4.0.2",
"faker": "^4.1.0", "faker": "^4.1.0",
"gray-matter": "^4.0.2", "gray-matter": "^4.0.2",
"gulp": "^4.0.2", "gulp": "^4.0.2",
"husky": "^4.2.5", "husky": "^4.2.5",
"jest": "^24.9.0", "jest": "^24.9.0",
"js-yaml": "^3.13.0", "js-yaml": "^3.14.0",
"lerna": "^3.20.2", "lerna": "^3.22.0",
"lint-staged": "^8.2.1", "lint-staged": "^8.2.1",
"lodash": "^4.17.15", "lodash": "^4.17.15",
"markdownlint": "^0.15.0", "markdownlint": "^0.15.0",