cypress e2e nightly (#360)

* fixes nightly e2e test

* adds on command
This commit is contained in:
Vim 2021-07-15 10:27:22 -07:00 committed by GitHub
parent dbf1ae2ad8
commit f301dfcd80
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,14 +1,20 @@
name: example-cron
name: End to end tests
on:
# push
schedule:
# runs tests every day at 12am ET (4am UTC)
- cron: '0 4 * * *'
jobs:
jobs:
nightly:
runs-on: ubuntu-20.04
env:
working-directory: ./client
steps:
- name: Checkout
uses: actions/checkout@v2
- run: cd justice40-tool/client
- name: Cypress nightly tests 🌃
uses: cypress-io/github-action@v2
uses: cypress-io/github-action@v2
with:
working-directory: ${{env.working-directory}}
start: npm start
wait-on: 'http://localhost:8000'