Skip to content

Dashboard e2e testing #4

Dashboard e2e testing

Dashboard e2e testing #4

name: Dashboard e2e testing
on:
workflow_dispatch:
push:
branches: [ $default-branch ]
pull_request:
branches: [ $default-branch ]
jobs:
cypress:
defaults:
run:
working-directory: dashboard
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v2
- run: npm install
- run: npm run build
env:
NODE_ENV: production
- name: Run project locally
run: |
npm install serve
npx serve dist -s -p 8080 &
- name: Run tests
uses: cypress-io/github-action@v2
with:
working-directory: dashboard
browser: chrome
headless: true