Skip to content

Commit

Permalink
fix: try another format
Browse files Browse the repository at this point in the history
  • Loading branch information
jenniferarnesen committed Nov 3, 2020
1 parent 2ef2caa commit cc0df29
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/cypress.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
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 }}
cypress_dhis2_base_url: 'http://localhost:8080'
cypress_dhis2_api_stub_mode: 'STUB'
REACT_APP_DHIS2_BASE_URL: 'http://localhost:8080'

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
tags: '@nonmutating'

0 comments on commit cc0df29

Please sign in to comment.