-
Notifications
You must be signed in to change notification settings - Fork 16
41 lines (36 loc) · 1.19 KB
/
cypress.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
37
38
39
40
41
name: 'dhis2: test (cypress)'
on:
push:
branches:
- master
pull_request:
env:
SERVER_START_CMD: 'yarn cypress:start'
SERVER_URL: 'http://localhost:3000'
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
REACT_APP_DHIS2_BASE_URL: ${{ secrets.REACT_APP_DHIS2_BASE_URL }}
cypress_dhis2_base_url: ${{ secrets.REACT_APP_DHIS2_BASE_URL }}
cypress_dhis2_username: ${{ secrets.DHIS2_USERNAME }}
cypress_dhis2_password: ${{ secrets.DHIS_PASSWORD }}
jobs:
e2e:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[skip ci]')"
strategy:
matrix:
containers: [1, 2, 3]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Tests
uses: cypress-io/github-action@v2
with:
record: true
parallel: true
start: ${{ env.SERVER_START_CMD }}
wait-on: ${{ env.SERVER_URL }}
wait-on-timeout: 60
group: 'e2e'
env:
CI: true
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}