Skip to content

Commit

Permalink
Override ozone-scripts and build/validate -PR on CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
corneliouzbett committed May 15, 2024
1 parent 644732b commit 9f20625
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 4 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -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 }}
1 change: 1 addition & 0 deletions .java-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1.8
3 changes: 1 addition & 2 deletions base/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
<relativePath></relativePath>
</parent>

<groupId>com.ozonehis</groupId>
<artifactId>ozone-cambodia</artifactId>
<version>1.7.0-SNAPSHOT</version>
<description>Ozone Cambodia</description>
Expand Down Expand Up @@ -126,4 +125,4 @@
</build>
</profile>
</profiles>
</project>
</project>
11 changes: 9 additions & 2 deletions prod/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
<relativePath></relativePath>
</parent>

<groupId>com.ozonehis</groupId>
<artifactId>ozone-cambodia-prod</artifactId>
<version>1.7.0-SNAPSHOT</version>
<description>Ozone Cambodia - with production dependencies</description>
Expand All @@ -33,6 +32,14 @@
<type>zip</type>
<version>${ozone.version}</version>
</dependency>

<!-- override the ozone-scripts dependency -->
<dependency>
<groupId>com.ozonehis</groupId>
<artifactId>ozone-scripts</artifactId>
<type>zip</type>
<version>1.0.0-SNAPSHOT</version>
</dependency>
</dependencies>

<build>
Expand Down Expand Up @@ -121,4 +128,4 @@
</build>
</profile>
</profiles>
</project>
</project>

0 comments on commit 9f20625

Please sign in to comment.