Skip to content

Update dependency start-server-and-test to v2 #260

Update dependency start-server-and-test to v2

Update dependency start-server-and-test to v2 #260

Workflow file for this run

name: test
on: [push]
jobs:
cypress-run:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎
uses: actions/checkout@v1
# Install NPM dependencies, cache them correctly
# and run all Cypress tests
- name: Cypress run 🧪
uses: cypress-io/github-action@v1
with:
start: npm start
wait-on: 'http://localhost:3000'
# nyc does not do very strict code coverage
# the file could be empty and the check would still pass
- name: check code coverage 📈
run: npx nyc report --check-coverage --lines 88
- name: strict code coverage 📊
run: |
npx check-coverage App.tsx
npx check-coverage index.tsx
npx only-covered App.tsx index.tsx utils.tsx