Skip to content

Commit

Permalink
Move cypress installation to CI
Browse files Browse the repository at this point in the history
cypress installation takes forewer on my machine, revisit in future
  • Loading branch information
limonte committed Sep 2, 2020
1 parent 6b2d54f commit 543fd8e
Show file tree
Hide file tree
Showing 3 changed files with 831 additions and 2,220 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ jobs:
- name: Install npm dependencies
run: yarn install

- name: Install cypress
run:
yarn add cypress@^5.0.0
yarn add @cypress/code-coverage@^3.0.0

- name: fix istanbul-reports
run: sed -i.bak 's/const meta = branchMap\[key\];/const meta = branchMap[key]; if (!meta) return;/g' node_modules/istanbul-reports/lib/lcovonly/index.js

Expand Down
4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
"@babel/core": "^7.2.2",
"@babel/plugin-transform-object-assign": "^7.2.0",
"@babel/preset-env": "^7.3.1",
"@cypress/code-coverage": "^3.0.0",
"@rollup/plugin-json": "^4.0.2",
"@sweetalert2/eslint-config": "^1.0.0",
"@sweetalert2/execute": "^1.0.0",
Expand All @@ -21,7 +20,6 @@
"babel-plugin-array-includes": "^2.0.3",
"browser-sync": "^2.26.3",
"custom-event-polyfill": "^1.0.6",
"cypress": "^5.0.0",
"eslint": "^7.0.0",
"eslint-plugin-cypress": "^2.8.1",
"gulp": "^4.0.0",
Expand Down Expand Up @@ -54,7 +52,7 @@
"sass": "^1.22.1",
"sinon": "^9.0.0",
"stylelint": "^13.0.0",
"typescript": "^3.5.0",
"typescript": "^4.0.0",
"webpack": "^4.29.0"
},
"files": [
Expand Down

0 comments on commit 543fd8e

Please sign in to comment.