Skip to content

Commit ea0a14d

Browse files
STAND-125: Add GitHub Actions workflow to build and test Standalone 3.x (openmrs#83)
* Replace the embedded mysql with mariadb4j in Ref App 2.x * removing nashorn-core * updating to the latest snapshot * resized MainFrame and updated readme * added unit tests * STAND-119: Support-reference-application-3-x-on-open-mrs-standalone * STAND-125: Add GitHub Actions workflow to build and test Standalone in Standalone 3.x * force Maven to allow HTTP on CI * moved maven-settings.xml to right location * updating dependencies * updating maven-settings.xml as my local settings.xml * fixing replacing of jar file in pom-step-02.xml on CI
1 parent e55f8e9 commit ea0a14d

File tree

4 files changed

+132
-7
lines changed

4 files changed

+132
-7
lines changed

.github/maven-settings.xml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<settings xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.2.0 http://maven.apache.org/xsd/settings-1.2.0.xsd" xmlns="http://maven.apache.org/SETTINGS/1.2.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
4+
<profiles>
5+
<profile>
6+
<repositories>
7+
<repository>
8+
<id>openmrs-repo</id>
9+
<name>OpenMRS Repository</name>
10+
<url>https://mavenrepo.openmrs.org/public</url>
11+
</repository>
12+
<repository>
13+
<releases>
14+
<checksumPolicy>fail</checksumPolicy>
15+
</releases>
16+
<snapshots>
17+
<checksumPolicy>warn</checksumPolicy>
18+
</snapshots>
19+
<id>archetype</id>
20+
<url>https://mavenrepo.openmrs.org/public</url>
21+
</repository>
22+
<repository>
23+
<id>openmrs-repo-thirdparty</id>
24+
<name>OpenMRS Thirdparty Nexus Repository</name>
25+
<url>https://mavenrepo.openmrs.org/thirdparty</url>
26+
</repository>
27+
<repository>
28+
<id>mks-nexus-public</id>
29+
<name>Mekom Repository</name>
30+
<url>https://nexus.mekomsolutions.net/repository/maven-public</url>
31+
</repository>
32+
</repositories>
33+
<pluginRepositories>
34+
<pluginRepository>
35+
<snapshots>
36+
<enabled>false</enabled>
37+
</snapshots>
38+
<id>openmrs-repo</id>
39+
<name>OpenMRS Nexus Repository</name>
40+
<url>https://mavenrepo.openmrs.org/public</url>
41+
</pluginRepository>
42+
</pluginRepositories>
43+
<id>openmrs</id>
44+
</profile>
45+
</profiles>
46+
<activeProfiles>
47+
<activeProfile>openmrs</activeProfile>
48+
</activeProfiles>
49+
<pluginGroups>
50+
<pluginGroup>org.openmrs.maven.plugins</pluginGroup>
51+
</pluginGroups>
52+
</settings>
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
name: Standalone 3.x Test CI
2+
3+
on:
4+
push:
5+
branches: [openmrs-emr3]
6+
pull_request:
7+
branches: [openmrs-emr3]
8+
9+
permissions:
10+
contents: read
11+
12+
concurrency:
13+
group: ${{ github.ref }}
14+
cancel-in-progress: true
15+
16+
jobs:
17+
build-linux:
18+
name: on Linux (Java 21)
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Checkout repository
22+
uses: actions/checkout@v4
23+
24+
- name: Set up JDK 21
25+
uses: actions/setup-java@v4
26+
with:
27+
java-version: '21'
28+
distribution: 'temurin'
29+
30+
- name: Run Maven Clean
31+
run: mvn clean --settings .github/maven-settings.xml
32+
33+
- name: Run Maven Install
34+
run: mvn install --settings .github/maven-settings.xml
35+
36+
build-windows:
37+
name: on Windows (Java 21)
38+
runs-on: windows-latest
39+
40+
steps:
41+
- name: Checkout repository
42+
uses: actions/checkout@v4
43+
44+
- name: Set up JDK 21
45+
uses: actions/setup-java@v4
46+
with:
47+
java-version: '21'
48+
distribution: 'temurin'
49+
50+
- name: Run Maven Clean
51+
run: mvn clean --settings .github/maven-settings.xml
52+
53+
- name: Run Maven Install
54+
run: mvn install --settings .github/maven-settings.xml
55+
56+
build-macos:
57+
name: on macOS (Java 21)
58+
runs-on: macos-15
59+
steps:
60+
- name: Checkout repository
61+
uses: actions/checkout@v4
62+
63+
- name: Set up JDK 21
64+
uses: actions/setup-java@v4
65+
with:
66+
java-version: '21'
67+
distribution: 'temurin'
68+
69+
- name: Run Maven Clean
70+
run: mvn clean --settings .github/maven-settings.xml
71+
72+
- name: Run Maven Install
73+
run: mvn install --settings .github/maven-settings.xml

pom-step-02.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@
222222
</goals>
223223
<configuration>
224224
<finalName>openmrs-standalone</finalName>
225-
<appendAssemblyId>false</appendAssemblyId>
225+
<appendAssemblyId>true</appendAssemblyId>
226226
<outputDirectory>${project.build.directory}</outputDirectory>
227227
<descriptorRefs>
228228
<descriptorRef>jar-with-dependencies</descriptorRef>

pom.xml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -161,22 +161,22 @@
161161
<plugin>
162162
<groupId>org.apache.maven.plugins</groupId>
163163
<artifactId>maven-enforcer-plugin</artifactId>
164-
<version>1.0</version>
164+
<version>3.6.1</version>
165165
</plugin>
166166
<plugin>
167167
<groupId>org.apache.maven.plugins</groupId>
168168
<artifactId>maven-resources-plugin</artifactId>
169-
<version>2.7</version>
169+
<version>3.3.1</version>
170170
</plugin>
171171
<plugin>
172172
<groupId>org.apache.maven.plugins</groupId>
173173
<artifactId>maven-compiler-plugin</artifactId>
174-
<version>2.3.2</version>
174+
<version>3.14.0</version>
175175
</plugin>
176176
<plugin>
177177
<groupId>org.apache.maven.plugins</groupId>
178178
<artifactId>maven-dependency-plugin</artifactId>
179-
<version>2.3</version>
179+
<version>3.8.1</version>
180180
</plugin>
181181
<plugin>
182182
<groupId>org.liquibase</groupId>
@@ -193,12 +193,12 @@
193193
<plugin>
194194
<groupId>org.codehaus.mojo</groupId>
195195
<artifactId>exec-maven-plugin</artifactId>
196-
<version>1.2.1</version>
196+
<version>3.5.1</version>
197197
</plugin>
198198
<plugin>
199199
<groupId>org.apache.maven.plugins</groupId>
200200
<artifactId>maven-assembly-plugin</artifactId>
201-
<version>2.3</version>
201+
<version>3.7.1</version>
202202
</plugin>
203203

204204
<!--This plugin's configuration is used to store Eclipse m2e settings

0 commit comments

Comments
 (0)