Skip to content

Commit

Permalink
Merge pull request #33 from UCSF-GP-Namibia/namibia-dev
Browse files Browse the repository at this point in the history
Updated the workflow
  • Loading branch information
larslemos authored Jul 27, 2023
2 parents ba9c3d3 + 1b4c124 commit 69aa102
Showing 1 changed file with 23 additions and 2 deletions.
25 changes: 23 additions & 2 deletions .github/workflows/ohri-namibia-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
push:
branches:
- dev
- main
- working
pull_request:
types: [opened, synchronize, closed]
env:
Expand All @@ -13,10 +15,29 @@ env:
IMAGE_NAME: ${{ github.repository }}

jobs:
docker_setup:
build:
runs-on: ubuntu-latest
if: (github.event_name == 'push' || github.event.pull_request.merged)
strategy:
matrix:
java: [ '8', '11' ]

steps:
- uses: actions/checkout@v2

- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: ${{ matrix.java }}
cache: 'maven'

- name: Build and Test
run: mvn --batch-mode --update-snapshots --activate-profiles validator clean package

docker_setup:
runs-on: ubuntu-latest
if: (github.event_name == 'push' || github.event_name == 'pull_request') && github.event.pull_request.merged

steps:
- name: Login to Docker Hub
uses: docker/login-action@v2
Expand Down

0 comments on commit 69aa102

Please sign in to comment.