-
Notifications
You must be signed in to change notification settings - Fork 12
39 lines (39 loc) · 1.24 KB
/
refapp-3x-user-settings.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
name: RefApp 3.x User Settings
on:
schedule:
- cron: "0 0 * * *"
push:
branches: [ main ]
pull_request:
branches: [ main ]
repository_dispatch:
types: [ qa ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout qaframework
uses: actions/checkout@main
with:
repository: ${{github.repository}}
- name: Run db and web containers
run: docker-compose -f docker/docker-compose-refqa-3x.yml up -d
- name: Wait for Openmrs instance to start
run: while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' http://localhost:8080/openmrs/#.htm)" != "200" ]]; do sleep 10; done
- name: Using Node.js
uses: actions/setup-node@v1
with:
node-version: '16.x'
- name: Installing dependencies
run: yarn install
- name: Run user settings workflow tests
run: cd packages/cypress && yarn refapp3UserSettings
- name: Upload screen recordings of failed tests
if: ${{ failure() }}
uses: actions/upload-artifact@v2
with:
name: Screen recordings of failed tests
path: |
packages/cypress/cypress/videos
packages/cypress/cypress/screenshots