Skip to content

Merge pull request #19 from yanfengliu/dependabot/npm_and_yarn/babel/… #44

Merge pull request #19 from yanfengliu/dependabot/npm_and_yarn/babel/…

Merge pull request #19 from yanfengliu/dependabot/npm_and_yarn/babel/… #44

name: docker chrome headless
on: [push]
jobs:
cypress-run:
runs-on: ubuntu-latest
container: cypress/included:8.7.0
steps:
- uses: actions/checkout@v2
- uses: cypress-io/github-action@v2
with:
start: npm start
wait-on: "http://localhost:5000"
# after the test run completes
# store videos and any screenshots
# NOTE: screenshots will be generated only if E2E test failed
# thus we store screenshots only on failures
# Alternative: create and commit an empty cypress/screenshots folder
# to always have something to upload
- uses: actions/upload-artifact@v1
if: failure()
with:
name: cypress-screenshots
path: cypress/screenshots
# Test run video was always captured, so this action uses "always()" condition
- uses: actions/upload-artifact@v1
if: always()
with:
name: cypress-videos
path: cypress/videos