Skip to content

O3 3639 temp branch #591

O3 3639 temp branch

O3 3639 temp branch #591

Workflow file for this run

# this build is designed to replicate the Travis CI workflow
name: Build SDK
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:
jobs:
build:
strategy:
matrix:
platform: [ ubuntu-latest ]
# version selection strategy: use the LTS support versions
java-version: [ 8, 11 ]
runs-on: ${{ matrix.platform }}
env:
PLATFORM: ${{ matrix.platform }}
JAVA_VERSION: ${{ matrix.java-version }}
steps:
- uses: actions/checkout@v2
- name: Set up JDK
uses: actions/setup-java@v2
with:
distribution: "adopt"
java-version: ${{ matrix.java-version }}
- name: Install SDK and Dependencies
run: mvn clean install -DskipTests=true -Dmaven.javadoc.skip=true --batch-mode --show-version --file pom.xml
- name: Setup SDK
run: mvn --batch-mode org.openmrs.maven.plugins:openmrs-sdk-maven-plugin:setup-sdk -DbatchAnswers=n
- name: Build and run tests
run: mvn test --batch-mode