Merge pull request #50 from lotrekagency/hotfix/savecontinue #144
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 and Coverage | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
cypress-run: | |
runs-on: ubuntu-latest | |
container: | |
image: cypress/included:10.6.0 | |
options: --user 1001 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Cypress run | |
uses: cypress-io/github-action@v4 | |
with: | |
build: yarn build:example | |
start: yarn start:example | |
wait-on: "http://localhost:3000" | |
browser: chrome | |
env: | |
CYPRESS_CACHE_FOLDER: '${GITHUB_WORKSPACE}/.cypress-cache' | |
- name: Cypress save screenshots | |
uses: actions/upload-artifact@v1 | |
if: failure() | |
with: | |
name: cypress-screenshots | |
path: cypress/screenshots | |
- name: Cypress save videos | |
uses: actions/upload-artifact@v1 | |
if: always() | |
with: | |
name: cypress-videos | |
path: cypress/videos |