You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
779 B
31 lines
779 B
name: Cypress Tests
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- '*'
|
|
push:
|
|
branches:
|
|
- develop
|
|
|
|
jobs:
|
|
cypress-run:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
- name: Cypress run
|
|
uses: cypress-io/github-action@v4
|
|
with:
|
|
build: yarn cypress:build
|
|
start: yarn start
|
|
wait-on: 'http://localhost:5055'
|
|
record: true
|
|
env:
|
|
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
WITH_MIGRATIONS: true
|
|
# Fix test titles in cypress dashboard
|
|
COMMIT_INFO_MESSAGE: ${{github.event.pull_request.title}}
|
|
COMMIT_INFO_SHA: ${{github.event.pull_request.head.sha}}
|