Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions .github/deploy-to-tomcat/deploy-snapshots.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Deploy Snapshots

on:
push:
branches: [3.x]

repository_dispatch:
types: ['deploy-snapshots']

jobs:
deploy:
runs-on: ubuntu-latest
steps:

# Check out the code
- uses: actions/checkout@v2

# Enable caching of Maven dependencies to speed up job execution. See https://github.com/actions/cache
- uses: actions/cache@v1
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
# Set up Java 1.8 with Maven including a .m2/settings.xml file. See https://github.com/actions/setup-java
- name: Set up JDK 1.8 and Maven settings file
uses: actions/setup-java@v1
with:
java-version: 1.8
server-id: openmrs-repo-snapshots
server-username: secret_BINTRAY_USERNAME
server-password: secret_BINTRAY_PASSWORD

# Execute the Maven deploy command to compile, package, test, verify, and publish to SNAPSHOT repository
- name: Maven Deploy
run: mvn -B deploy --file pom.xml
env:
secret_BINTRAY_USERNAME: ${{ secrets.BINTRAY_USERNAME }}
secret_BINTRAY_PASSWORD: ${{ secrets.BINTRAY_PASSWORD }}
35 changes: 35 additions & 0 deletions .github/deploy-to-tomcat/run-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# this build is designed to replicate the Travis CI workflow
name: Build with Maven

on:
push:
branches: [ 3.x ]
pull_request:
branches: [ 3.x ]
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@v2
- name: Set up JDK
uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: ${{ matrix.java-version }}
cache: 'maven'
- name: Install dependencies
run: mvn clean install -DskipTests=true -Dmaven.javadoc.skip=true --batch-mode --show-version --file pom.xml
- name: Build with Maven
run: mvn test --batch-mode --file pom.xml

39 changes: 39 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Deploy Snapshots

on:
push:
branches: [master]

repository_dispatch:
types: ['deploy-snapshots']

jobs:
deploy:
runs-on: ubuntu-latest
steps:

# Check out the code
- uses: actions/checkout@v2

# Enable caching of Maven dependencies to speed up job execution. See https://github.com/actions/cache
- uses: actions/cache@v1
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
# Set up Java 1.8 with Maven including a .m2/settings.xml file. See https://github.com/actions/setup-java
- name: Set up JDK 1.8 and Maven settings file
uses: actions/setup-java@v1
with:
java-version: 1.8
server-id: openmrs-repo-snapshots
server-username: secret_BINTRAY_USERNAME
server-password: secret_BINTRAY_PASSWORD

# Execute the Maven deploy command to compile, package, test, verify, and publish to SNAPSHOT repository
- name: Maven Deploy
run: mvn -B deploy --file pom.xml
env:
secret_BINTRAY_USERNAME: ${{ secrets.BINTRAY_USERNAME }}
secret_BINTRAY_PASSWORD: ${{ secrets.BINTRAY_PASSWORD }}
Loading
Loading