-
Notifications
You must be signed in to change notification settings - Fork 23
36 lines (33 loc) · 1.14 KB
/
cypress-tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: "dhis2: tests"
on: [push]
jobs:
cypress:
runs-on: ubuntu-latest
if: "!(startsWith(github.event.head_commit.message, 'fix(translations)') && github.actor == 'dhis2-bot') && !contains(github.event.head_commit.message, '[skip ci]')"
container: cypress/browsers:node14.7.0-chrome84
strategy:
# when one test fails, DO NOT cancel the other
# containers, because this will kill Cypress processes
# leaving the Dashboard hanging ...
# https://github.com/cypress-io/github-action/issues/48
fail-fast: false
matrix:
containers: [1, 2, 3, 4]
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Cypress run
uses: cypress-io/github-action@v2
with:
record: true
parallel: true
group: e2e-chrome-parallel
browser: chrome
start: 'yarn start:forCypress'
wait-on: 'http://localhost:3000'
# wait for 200 secs for the server to respond
wait-on-timeout: 200
env:
CI: true
CYPRESS_RECORD_KEY: '6b0bce0d-a4e8-417b-bbee-9157cbe9a999'
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}