Update URLs and text to use "jobs" instead of "results" for consistency #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
name: Unit Tests | |
on: [push, pull_request] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: '14' | |
- run: npm install | |
- name: Cypress run | |
uses: cypress-io/github-action@v2 | |
with: | |
browser: chrome | |
start: npm start | |
wait-on: 'http://localhost:3000' | |
- uses: actions/upload-artifact@v2 | |
if: failure() | |
with: | |
name: cypress-screenshots | |
path: cypress/screenshots | |
- uses: actions/upload-artifact@v2 | |
if: always() | |
with: | |
name: cypress-videos | |
path: cypress/videos | |
- name: upload coverage to Codecov | |
uses: codecov/codecov-action@v2 |