Skip to content

Commit

Permalink
add ci build
Browse files Browse the repository at this point in the history
  • Loading branch information
mozzy11 committed Mar 27, 2024
1 parent 14095cb commit a073e2d
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 1 deletion.
33 changes: 33 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -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


2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
<artifactId>openelisglobal</artifactId>
<version>2.5.0.0</version>
<scope>system</scope>
<systemPath>/absolute-full-path/openelisglobal-plugins/lib/openelisglobal-2.5.0.0.jar</systemPath>
<systemPath>/home/runner/work/openelisglobal-plugins/openelisglobal-plugins/lib/openelisglobal-2.5.0.0.jar</systemPath>
</dependency>
<dependency>
<groupId>commons-validator</groupId>
Expand Down

0 comments on commit a073e2d

Please sign in to comment.