From 9f206257c85957c1257028c6f439da1658f3cedf Mon Sep 17 00:00:00 2001 From: "Kipchumba C. Bett" Date: Wed, 15 May 2024 17:21:17 +0300 Subject: [PATCH] Override ozone-scripts and build/validate -PR on CI. --- .github/workflows/ci.yml | 18 ++++++++++++++++++ .java-version | 1 + base/pom.xml | 3 +-- prod/pom.xml | 11 +++++++++-- 4 files changed, 29 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/ci.yml create mode 100644 .java-version diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..e96c89ff --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,18 @@ +name: CI + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + validate: + uses: mekomsolutions/shared-github-workflow/.github/workflows/maven-build-test.yml@main + with: + java-version: "8" + maven-phase: "install" + maven-args: "-P validator -Pprod" # OMRS config validation + secrets: + NEXUS_USERNAME: ${{ secrets.NEXUS_USERNAME }} + NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }} diff --git a/.java-version b/.java-version new file mode 100644 index 00000000..62593409 --- /dev/null +++ b/.java-version @@ -0,0 +1 @@ +1.8 diff --git a/base/pom.xml b/base/pom.xml index 148259f3..38638dbd 100644 --- a/base/pom.xml +++ b/base/pom.xml @@ -10,7 +10,6 @@ - com.ozonehis ozone-cambodia 1.7.0-SNAPSHOT Ozone Cambodia @@ -126,4 +125,4 @@ - \ No newline at end of file + diff --git a/prod/pom.xml b/prod/pom.xml index 3e10b8c2..89b56d8c 100644 --- a/prod/pom.xml +++ b/prod/pom.xml @@ -10,7 +10,6 @@ - com.ozonehis ozone-cambodia-prod 1.7.0-SNAPSHOT Ozone Cambodia - with production dependencies @@ -33,6 +32,14 @@ zip ${ozone.version} + + + + com.ozonehis + ozone-scripts + zip + 1.0.0-SNAPSHOT + @@ -121,4 +128,4 @@ - \ No newline at end of file +