Skip to content

Fix cypress peer dependency to includ version higher than 4 #62

Fix cypress peer dependency to includ version higher than 4

Fix cypress peer dependency to includ version higher than 4 #62

Workflow file for this run

# 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__/*