♻️ r Adapt to new data structure #626
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: cypress webforms-ui | |
on: [push] | |
env: | |
REACT_APP_API_BASE_URL: ${{ secrets.API_BASE_URL }} | |
jobs: | |
cypress-run: | |
runs-on: ubuntu-20.04 | |
name: cypress webforms-ui on chrome | |
environment: cypress | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Generate package-lock | |
run: npm install | |
- uses: cypress-io/github-action@v2 | |
with: | |
browser: chrome | |
record: true | |
parallel: true | |
start: npm run start | |
wait-on: 'http://localhost:3000' | |
config: baseUrl=http://localhost:3000 | |
env: | |
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }} | |
# Pass GitHub token to allow accurately detecting a build vs a re-run build | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |