Skip to content

Commit

Permalink
Add GitHub Actions to build and test.
Browse files Browse the repository at this point in the history
Use HTTPS Maven repositories

Build with Java 8
  • Loading branch information
rbuisson committed Nov 4, 2021
1 parent 461bb95 commit e6376cd
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 6 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/build-and-test.yml
@@ -0,0 +1,17 @@
name: Java CI

on: [push]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up JDK 8
uses: actions/setup-java@v2
with:
java-version: '8'
distribution: 'adopt'
- name: Build with Maven
run: mvn --batch-mode --update-snapshots clean package -P validator
12 changes: 6 additions & 6 deletions pom.xml
Expand Up @@ -292,26 +292,26 @@
<repository>
<id>openmrs-repo</id>
<name>OpenMRS Nexus Repository</name>
<url>http://mavenrepo.openmrs.org/nexus/content/repositories/public</url>
<url>https://mavenrepo.openmrs.org/nexus/content/repositories/public</url>
</repository>
<repository>
<id>central</id>
<name>Maven Repository Switchboard</name>
<layout>default</layout>
<url>http://repo1.maven.org/maven2</url>
<url>https://repo1.maven.org/maven2</url>
</repository>
<repository>
<id>repo.mybahmni.org</id>
<name>bahmni-artifactory-snapshots</name>
<url>http://repo.mybahmni.org.s3.amazonaws.com/artifactory/snapshot</url>
<url>https://repo.mybahmni.org.s3.amazonaws.com/artifactory/snapshot</url>
<snapshots>
<updatePolicy>always</updatePolicy>
</snapshots>
</repository>
<repository>
<id>repo.mybahmni.org-release</id>
<name>bahmni-artifactory-release</name>
<url>http://repo.mybahmni.org.s3.amazonaws.com/artifactory/release</url>
<url>https://repo.mybahmni.org.s3.amazonaws.com/artifactory/release</url>
</repository>
<repository>
<id>bahmni-nexus</id>
Expand All @@ -332,12 +332,12 @@
<pluginRepository>
<id>openmrs-repo</id>
<name>OpenMRS Nexus</name>
<url>http://mavenrepo.openmrs.org/nexus/content/repositories/public</url>
<url>https://mavenrepo.openmrs.org/nexus/content/repositories/public</url>
</pluginRepository>
<pluginRepository>
<id>openmrs-repo-snapshots</id>
<name>OpenMRS Nexus Snapshots</name>
<url>http://mavenrepo.openmrs.org/nexus/content/repositories/snapshots</url>
<url>https://mavenrepo.openmrs.org/nexus/content/repositories/snapshots</url>
</pluginRepository>
</pluginRepositories>

Expand Down

0 comments on commit e6376cd

Please sign in to comment.