Update dependency @cypress/code-coverage to v3.12.12 #197
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
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 |