-
Notifications
You must be signed in to change notification settings - Fork 51
52 lines (52 loc) · 1.97 KB
/
platform-upgrade.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
42
43
44
45
46
47
48
49
50
51
52
name: Platform Upgrade
on:
schedule:
- cron: '0 0 * * 1,3,5'
workflow_dispatch:
push:
branches: [master]
repository_dispatch:
types: [qa]
jobs:
build:
runs-on: ubuntu-latest
services:
firefox:
image: selenium/node-firefox:3.141.59-gold
env:
HUB_HOST: hub
HUB_PORT: 4444
steps:
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Checkout openmrs-core
uses: actions/checkout@master
with:
repository: openmrs/openmrs-core
- name: build platform
run: |
pwd
mvn clean install -DskipTests=true
cp webapp/target/openmrs.war ../
- name: Checkout qaframework
uses: actions/checkout@master
with:
repository: ${{github.repository}}
- name: run db and web containers
run: |
cp ../openmrs.war docker/
cd docker
curl https://raw.githubusercontent.com/openmrs/openmrs-contrib-ansible-docker-compose/master/files/uat-platform/dbdump/dump.sql --output dump.sql
docker-compose -f docker-compose-platform-upgrade.yml up -d
- name: wait for openmrs instance to start
run: while ! nc -z localhost 8080 </dev/null; do sleep 1; done
- name: Run qaframework on selenium
run: |
cd qaframework-bdd-tests
echo "cucumber.publish.enabled=true" > src/test/resources/cucumber.properties
mvn clean install -DskipTests=true
cp -f src/test/resources/org/openmrs/uitestframework/test-local-firefox.properties src/test/resources/org/openmrs/uitestframework/test.properties
npm run coreUpgrade
curl -sX POST -F messages=@target/cucumber.ndjson https://studio.cucumber.io/cucumber_project/results -H "project-access-token: ${{secrets.CUCUMBER_IO_TOKEN}}" -H "provider: github" -H "repo: ${{github.repository}}" -H "branch: master" -H "revision: ${{github.sha}}"