Skip to content

Commit

Permalink
Update the github workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
anjula-sack committed May 24, 2023
1 parent 94fbbb4 commit d2afcaf
Show file tree
Hide file tree
Showing 10 changed files with 138 additions and 85 deletions.
24 changes: 15 additions & 9 deletions .github/workflows/refapp-2x-provider.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,19 @@ on:
types: [qa]
workflow_dispatch:
jobs:
build:
test-on-browsers:
runs-on: ubuntu-latest
defaults:
run:
working-directory: qaframework-bdd-tests
strategy:
matrix:
browser:
- firefox
- chrome
services:
firefox:
image: selenium/node-firefox:3.141.59-gold
${{ matrix.browser }}:
image: selenium/node-${{ matrix.browser }}:3.141.59-gold
env:
HUB_HOST: hub
HUB_PORT: 4444
Expand All @@ -25,15 +30,16 @@ jobs:
with:
java-version: 1.8
- name: Checkout qaframework
uses: actions/checkout@master
uses: actions/checkout@v2
with:
repository: ${{github.repository}}
- name: run db and web containers
repository: ${{ github.repository }}
- name: Run db and web containers
run: |
docker-compose -f docker/docker-compose-refqa.yml up -d
- name: wait for openmrs instance to start
run: while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' http://localhost:8080/openmrs/login.htm)" != "200" ]]; do sleep 1; done
- name: Run qaframework on selenium
- name: Wait for OpenMRS instance to start
run: |
while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' http://localhost:8080/openmrs/login.htm)" != "200" ]]; do sleep 1; done
- name: Run qaframework on ${{ matrix.browser }}
run: |
echo "cucumber.publish.enabled=true" > src/test/resources/cucumber.properties
mvn clean install -DskipTests=true
Expand Down
26 changes: 16 additions & 10 deletions .github/workflows/refapp-2x-registration.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: RefApp 2.x Patient Registration
name: RefApp 2.x Patient Registration
on:
push:
branches: [master]
Expand All @@ -8,14 +8,19 @@ on:
types: [qa]
workflow_dispatch:
jobs:
build:
test-on-browsers:
runs-on: ubuntu-latest
defaults:
run:
working-directory: qaframework-bdd-tests
strategy:
matrix:
browser:
- firefox
- chrome
services:
firefox:
image: selenium/node-firefox:3.141.59-gold
${{ matrix.browser }}:
image: selenium/node-${{ matrix.browser }}:3.141.59-gold
env:
HUB_HOST: hub
HUB_PORT: 4444
Expand All @@ -25,15 +30,16 @@ jobs:
with:
java-version: 1.8
- name: Checkout qaframework
uses: actions/checkout@master
uses: actions/checkout@v2
with:
repository: ${{github.repository}}
- name: run db and web containers
repository: ${{ github.repository }}
- name: Run db and web containers
run: |
docker-compose -f docker/docker-compose-refqa.yml up -d
- name: wait for openmrs instance to start
run: while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' http://localhost:8080/openmrs/login.htm)" != "200" ]]; do sleep 1; done
- name: Run qaframework on selenium
- name: Wait for OpenMRS instance to start
run: |
while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' http://localhost:8080/openmrs/login.htm)" != "200" ]]; do sleep 1; done
- name: Run qaframework on ${{ matrix.browser }}
run: |
echo "cucumber.publish.enabled=true" > src/test/resources/cucumber.properties
mvn clean install -DskipTests=true
Expand Down
24 changes: 15 additions & 9 deletions .github/workflows/refapp-2x-report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,19 @@ on:
types: [qa]
workflow_dispatch:
jobs:
build:
test-on-browsers:
runs-on: ubuntu-latest
defaults:
run:
working-directory: qaframework-bdd-tests
strategy:
matrix:
browser:
- firefox
- chrome
services:
firefox:
image: selenium/node-firefox:3.141.59-gold
${{ matrix.browser }}:
image: selenium/node-${{ matrix.browser }}:3.141.59-gold
env:
HUB_HOST: hub
HUB_PORT: 4444
Expand All @@ -25,15 +30,16 @@ jobs:
with:
java-version: 1.8
- name: Checkout qaframework
uses: actions/checkout@master
uses: actions/checkout@v2
with:
repository: ${{github.repository}}
- name: run db and web containers
repository: ${{ github.repository }}
- name: Run db and web containers
run: |
docker-compose -f docker/docker-compose-refqa.yml up -d
- name: wait for openmrs instance to start
run: while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' http://localhost:8080/openmrs/login.htm)" != "200" ]]; do sleep 1; done
- name: Run qaframework on selenium
- name: Wait for OpenMRS instance to start
run: |
while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' http://localhost:8080/openmrs/login.htm)" != "200" ]]; do sleep 1; done
- name: Run qaframework on ${{ matrix.browser }}
run: |
echo "cucumber.publish.enabled=true" > src/test/resources/cucumber.properties
mvn clean install -DskipTests=true
Expand Down
24 changes: 15 additions & 9 deletions .github/workflows/refapp-2x-roles-and-privileges.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,19 @@ on:
types: [qa]
workflow_dispatch:
jobs:
build:
test-on-browsers:
runs-on: ubuntu-latest
defaults:
run:
working-directory: qaframework-bdd-tests
strategy:
matrix:
browser:
- firefox
- chrome
services:
firefox:
image: selenium/node-firefox:3.141.59-gold
${{ matrix.browser }}:
image: selenium/node-${{ matrix.browser }}:3.141.59-gold
env:
HUB_HOST: hub
HUB_PORT: 4444
Expand All @@ -25,15 +30,16 @@ jobs:
with:
java-version: 1.8
- name: Checkout qaframework
uses: actions/checkout@master
uses: actions/checkout@v2
with:
repository: ${{github.repository}}
- name: run db and web containers
repository: ${{ github.repository }}
- name: Run db and web containers
run: |
docker-compose -f docker/docker-compose-refqa.yml up -d
- name: wait for openmrs instance to start
run: while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' http://localhost:8080/openmrs/login.htm)" != "200" ]]; do sleep 1; done
- name: Run qaframework on selenium
- name: Wait for OpenMRS instance to start
run: |
while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' http://localhost:8080/openmrs/login.htm)" != "200" ]]; do sleep 1; done
- name: Run qaframework on ${{ matrix.browser }}
run: |
echo "cucumber.publish.enabled=true" > src/test/resources/cucumber.properties
mvn clean install -DskipTests=true
Expand Down
24 changes: 15 additions & 9 deletions .github/workflows/refapp-2x-service.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,19 @@ on:
types: [qa]
workflow_dispatch:
jobs:
build:
test-on-browsers:
runs-on: ubuntu-latest
defaults:
run:
working-directory: qaframework-bdd-tests
strategy:
matrix:
browser:
- firefox
- chrome
services:
firefox:
image: selenium/node-firefox:3.141.59-gold
${{ matrix.browser }}:
image: selenium/node-${{ matrix.browser }}:3.141.59-gold
env:
HUB_HOST: hub
HUB_PORT: 4444
Expand All @@ -25,15 +30,16 @@ jobs:
with:
java-version: 1.8
- name: Checkout qaframework
uses: actions/checkout@master
uses: actions/checkout@v2
with:
repository: ${{github.repository}}
- name: run db and web containers
repository: ${{ github.repository }}
- name: Run db and web containers
run: |
docker-compose -f docker/docker-compose-refqa.yml up -d
- name: wait for openmrs instance to start
run: while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' http://localhost:8080/openmrs/login.htm)" != "200" ]]; do sleep 1; done
- name: Run qaframework on selenium
- name: Wait for OpenMRS instance to start
run: |
while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' http://localhost:8080/openmrs/login.htm)" != "200" ]]; do sleep 1; done
- name: Run qaframework on ${{ matrix.browser }}
run: |
echo "cucumber.publish.enabled=true" > src/test/resources/cucumber.properties
mvn clean install -DskipTests=true
Expand Down
24 changes: 15 additions & 9 deletions .github/workflows/refapp-2x-user-account.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,19 @@ on:
types: [qa]
workflow_dispatch:
jobs:
build:
test-on-browsers:
runs-on: ubuntu-latest
defaults:
run:
working-directory: qaframework-bdd-tests
strategy:
matrix:
browser:
- firefox
- chrome
services:
firefox:
image: selenium/node-firefox:3.141.59-gold
${{ matrix.browser }}:
image: selenium/node-${{ matrix.browser }}:3.141.59-gold
env:
HUB_HOST: hub
HUB_PORT: 4444
Expand All @@ -25,15 +30,16 @@ jobs:
with:
java-version: 1.8
- name: Checkout qaframework
uses: actions/checkout@master
uses: actions/checkout@v2
with:
repository: ${{github.repository}}
- name: run db and web containers
repository: ${{ github.repository }}
- name: Run db and web containers
run: |
docker-compose -f docker/docker-compose-refqa.yml up -d
- name: wait for openmrs instance to start
run: while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' http://localhost:8080/openmrs/login.htm)" != "200" ]]; do sleep 1; done
- name: Run qaframework on selenium
- name: Wait for OpenMRS instance to start
run: |
while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' http://localhost:8080/openmrs/login.htm)" != "200" ]]; do sleep 1; done
- name: Run qaframework on ${{ matrix.browser }}
run: |
echo "cucumber.publish.enabled=true" > src/test/resources/cucumber.properties
mvn clean install -DskipTests=true
Expand Down
14 changes: 9 additions & 5 deletions .github/workflows/refapp-2x-user.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ on:
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: qaframework-bdd-tests
services:
firefox:
image: selenium/node-firefox:3.141.59-gold
Expand All @@ -22,14 +25,15 @@ jobs:
with:
java-version: 1.8
- name: Checkout qaframework
uses: actions/checkout@master
uses: actions/checkout@v2
with:
repository: ${{github.repository}}
- name: run db and web containers
repository: ${{ github.repository }}
- name: Run db and web containers
run: |
docker-compose -f docker/docker-compose-refqa.yml up -d
- name: wait for openmrs instance to start
run: while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' http://localhost:8080/openmrs/login.htm)" != "200" ]]; do sleep 1; done
- name: Wait for OpenMRS instance to start
run: |
while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' http://localhost:8080/openmrs/login.htm)" != "200" ]]; do sleep 1; done
- name: Run qaframework on selenium
run: |
echo "cucumber.publish.enabled=true" > qaframework-bdd-tests/src/test/resources/cucumber.properties
Expand Down
24 changes: 15 additions & 9 deletions .github/workflows/refapp-2x-visit-note.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,19 @@ on:
types: [qa]
workflow_dispatch:
jobs:
build:
test-on-browsers:
runs-on: ubuntu-latest
defaults:
run:
working-directory: qaframework-bdd-tests
strategy:
matrix:
browser:
- firefox
- chrome
services:
firefox:
image: selenium/node-firefox:3.141.59-gold
${{ matrix.browser }}:
image: selenium/node-${{ matrix.browser }}:3.141.59-gold
env:
HUB_HOST: hub
HUB_PORT: 4444
Expand All @@ -25,15 +30,16 @@ jobs:
with:
java-version: 1.8
- name: Checkout qaframework
uses: actions/checkout@master
uses: actions/checkout@v2
with:
repository: ${{github.repository}}
- name: run db and web containers
repository: ${{ github.repository }}
- name: Run db and web containers
run: |
docker-compose -f docker/docker-compose-refqa.yml up -d
- name: wait for openmrs instance to start
run: while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' http://localhost:8080/openmrs/login.htm)" != "200" ]]; do sleep 1; done
- name: Run qaframework on selenium
- name: Wait for OpenMRS instance to start
run: |
while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' http://localhost:8080/openmrs/login.htm)" != "200" ]]; do sleep 1; done
- name: Run qaframework on ${{ matrix.browser }}
run: |
echo "cucumber.publish.enabled=true" > src/test/resources/cucumber.properties
mvn clean install -DskipTests=true
Expand Down
15 changes: 8 additions & 7 deletions .github/workflows/refapp-2x-visit-type.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
types: [qa]
workflow_dispatch:
jobs:
build:
test-on-firefox:
runs-on: ubuntu-latest
defaults:
run:
Expand All @@ -25,15 +25,16 @@ jobs:
with:
java-version: 1.8
- name: Checkout qaframework
uses: actions/checkout@master
uses: actions/checkout@v2
with:
repository: ${{github.repository}}
- name: run db and web containers
repository: ${{ github.repository }}
- name: Run db and web containers
run: |
docker-compose -f docker/docker-compose-refqa.yml up -d
- name: wait for openmrs instance to start
run: while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' http://localhost:8080/openmrs/login.htm)" != "200" ]]; do sleep 1; done
- name: Run qaframework on selenium
- name: Wait for OpenMRS instance to start
run: |
while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' http://localhost:8080/openmrs/login.htm)" != "200" ]]; do sleep 1; done
- name: Run qaframework on Firefox
run: |
echo "cucumber.publish.enabled=true" > src/test/resources/cucumber.properties
mvn clean install -DskipTests=true
Expand Down
Loading

0 comments on commit d2afcaf

Please sign in to comment.