From a073e2da0f0f8ccc0b5ca9ca40180361d3918d8c Mon Sep 17 00:00:00 2001 From: mozzy11 Date: Wed, 27 Mar 2024 23:08:28 +0300 Subject: [PATCH] add ci build --- .github/workflows/ci.yml | 33 +++++++++++++++++++++++++++++++++ README.md | 2 ++ pom.xml | 2 +- 3 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..150b3b2 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,33 @@ +name: openelisglobal-plugins CI Build +on: + push: + branches: [develop] + pull_request: + branches: [develop] + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Set up JDK 11 + uses: actions/setup-java@v1 + with: + java-version: 11 + - name: Cache local Maven repository + uses: actions/cache@v2 + with: + path: ~/.m2/repository + key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} + restore-keys: | + ${{ runner.os }}-maven- + + - name: Checkout openelisglobal-plugins + uses: actions/checkout@v2 + with: + repository: ${{github.repository}} + + - name: Build openelisglobal-plugins + run: mvn clean install + + diff --git a/README.md b/README.md index 7a6a3ff..92dc20b 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,8 @@ openelisglobal-plugins Repository for plugins for openelisglobal +[![Build Status](https://github.com/openelisglobal/openelisglobal-plugins/actions/workflows/ci.yml/badge.svg)](https://github.com/openelisglobal/openelisglobal-plugins/actions/workflows/ci.yml) + For Building The Plugins 1. Got to the [Parent pom file](./pom.xml) diff --git a/pom.xml b/pom.xml index 96c61c3..d942918 100644 --- a/pom.xml +++ b/pom.xml @@ -37,7 +37,7 @@ openelisglobal 2.5.0.0 system - /absolute-full-path/openelisglobal-plugins/lib/openelisglobal-2.5.0.0.jar + /home/runner/work/openelisglobal-plugins/openelisglobal-plugins/lib/openelisglobal-2.5.0.0.jar commons-validator