Skip to content
This repository has been archived by the owner on Nov 21, 2024. It is now read-only.

Commit

Permalink
ci: run cypress tests on push
Browse files Browse the repository at this point in the history
  • Loading branch information
pyphilia committed Aug 30, 2021
1 parent 5ca29e3 commit a0f94b8
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/cypress.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: cypress tests
on: [push]
jobs:
cypress-run:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2

- name: set up node
uses: actions/setup-node@v2
with:
node-version: '14'
cache: 'yarn'

- name: install yarn
# avoid checksum errors with github packages
run: yarn

- name: cypress run
uses: cypress-io/github-action@v2
env:
REACT_APP_API_HOST: ${{ secrets.REACT_APP_API_HOST }}
REACT_APP_GRAASP_COMPOSE_HOST: http://localhost:3000
REACT_APP_NODE_ENV: test
with:
install: false
config: baseUrl=http://localhost:3000
start: yarn start:ci
wait-on: 'http://localhost:3000'
wait-on-timeout: 180
browser: chrome
headless: true
quiet: true

- name: coverage report
run: npx nyc report --reporter=text-summary

0 comments on commit a0f94b8

Please sign in to comment.