Skip to content

Reapply "FM2-646: Practitioner: support limiting search to users or p… #1579

Reapply "FM2-646: Practitioner: support limiting search to users or p…

Reapply "FM2-646: Practitioner: support limiting search to users or p… #1579

Workflow file for this run

name: Build with Maven
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:
jobs:
build:
strategy:
matrix:
platform: [ ubuntu-latest ]
java-version: [ 8 ]
runs-on: ${{ matrix.platform }}
env:
PLATFORM: ${{ matrix.platform }}
JAVA_VERSION: ${{ matrix.java-version }}
steps:
- uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: ${{ matrix.java-version }}
- name: Build with Maven
id: build_with_maven
run: |
mvn clean verify --batch-mode -P integration-test --file pom.xml
- uses: actions/upload-artifact@v4
with:
name: build_artifact
path: ${{ github.workspace }}/omod/target/*.omod
- name: Send data to Codecov
uses: codecov/codecov-action@v4
with:
env_vars: PLATFORM, JAVA_VERSION
test:
name: Run e2e tests
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 8
- uses: actions/download-artifact@v4
with:
name: build_artifact
path: ${{ github.workspace }}/omod/target
- 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 End to End tests
run: mvn verify --batch-mode -P e2e-test --file pom.xml
- name: Stop db and web containers
if: always()
run: docker-compose -f "docker/docker-compose-refqa.yml" down