Fix cypress peer dependency to includ version higher than 4 #62
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions | |
name: test | |
on: [push] | |
jobs: | |
test: | |
runs-on: ubuntu-16.04 | |
# Cypress Docker image with Chrome v78 | |
# and Firefox v70 pre-installed | |
container: cypress/browsers:node12.13.0-chrome78-ff70 | |
strategy: | |
matrix: | |
node-version: [10.x, 12.x] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Cache Node.js modules | |
uses: actions/cache@v1 | |
with: | |
path: ~/.npm # npm cache files are stored in `~/.npm` on Linux/macOS | |
key: ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.OS }}-node- | |
${{ runner.OS }}- | |
- name: npm install, build, and test | |
run: | | |
npm ci | |
npm --prefix cypress ci | |
npm run lint & | |
npm run ci:test | |
kill $(jobs -p) || true | |
- name: Archive Cypress snapshots | |
uses: actions/upload-artifact@v1 | |
if: failure() | |
with: | |
name: cypress-snapshots | |
path: cypress/cypress/integration/__*snapshots__/* |