Skip to content

Commit a82a49e

Browse files
authored
Merge pull request Sage-Bionetworks#49 from xschildw/dev-plfm-8170
PLFM-8170: GH CI
2 parents ef31311 + 25c4131 commit a82a49e

File tree

11 files changed

+57
-31
lines changed

11 files changed

+57
-31
lines changed

.github/workflows/build.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: build
2+
on:
3+
workflow_call:
4+
inputs:
5+
mvn_goal:
6+
required: true
7+
type: string
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
- name: Set up JDK 11
15+
uses: actions/setup-java@v3
16+
with:
17+
java-version: 11
18+
distribution: corretto
19+
cache: 'maven'
20+
server-id: sagebionetworks
21+
server-username: MAVEN_USERNAME
22+
server-password: MAVEN_USERPWD
23+
- name: Build with Maven
24+
run: mvn -B ${{ inputs.mvn_goal }} --file pom.xml
25+
env:
26+
MAVEN_USERNAME: ${{ secrets.PLATFORM_ARTIFACTORY_USER }}
27+
MAVEN_USERPWD: ${{ secrets.PLATFORM_ARTIFACTORY_PWD }}

.github/workflows/main.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: build-main
2+
3+
on:
4+
push:
5+
branches: [ develop ]
6+
pull_request:
7+
branches: [ develop ]
8+
9+
jobs:
10+
call-build:
11+
if: github.event_name == 'push' && github.repository_owner == 'Sage-Bionetworks'
12+
uses: ./.github/workflows/build.yaml
13+
with:
14+
mvn_goal: deploy
15+
secrets: inherit
16+
call-test:
17+
if: github.event_name == 'pull_request'
18+
uses: ./.github/workflows/build.yaml
19+
with:
20+
mvn_goal: test
21+
secrets: inherit
22+

.github/workflows/maven.yml

Lines changed: 0 additions & 24 deletions
This file was deleted.

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
/.project
33
/target
44
/.pydevproject
5+
.idea/

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<modelVersion>4.0.0</modelVersion>
55
<groupId>org.sagebionetworks</groupId>
66
<artifactId>schema-to-pojo</artifactId>
7-
<version>0.6.9</version>
7+
<version>0.6.10</version>
88
<packaging>pom</packaging>
99
<name>schema-to-pojo</name>
1010
<description>Container for the rest of the sub-projects</description>

schema-to-pojo-core/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<artifactId>schema-to-pojo</artifactId>
77
<groupId>org.sagebionetworks</groupId>
8-
<version>0.6.9</version>
8+
<version>0.6.10</version>
99
</parent>
1010
<artifactId>schema-to-pojo-core</artifactId>
1111
<name>schema-to-pojo-core</name>

schema-to-pojo-gwt/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<artifactId>schema-to-pojo</artifactId>
66
<groupId>org.sagebionetworks</groupId>
7-
<version>0.6.9</version>
7+
<version>0.6.10</version>
88
</parent>
99
<artifactId>schema-to-pojo-gwt</artifactId>
1010
<packaging>jar</packaging>

schema-to-pojo-integration-tests/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<artifactId>schema-to-pojo</artifactId>
77
<groupId>org.sagebionetworks</groupId>
8-
<version>0.6.9</version>
8+
<version>0.6.10</version>
99
</parent>
1010
<artifactId>schema-to-pojo-integration-tests</artifactId>
1111
<name>schema-to-pojo-integration-tests</name>

schema-to-pojo-lib/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<artifactId>schema-to-pojo</artifactId>
77
<groupId>org.sagebionetworks</groupId>
8-
<version>0.6.9</version>
8+
<version>0.6.10</version>
99
</parent>
1010
<artifactId>schema-to-pojo-lib</artifactId>
1111
<name>schema-to-pojo-lib</name>

schema-to-pojo-maven-plugin/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<artifactId>schema-to-pojo</artifactId>
66
<groupId>org.sagebionetworks</groupId>
7-
<version>0.6.9</version>
7+
<version>0.6.10</version>
88
</parent>
99
<modelVersion>4.0.0</modelVersion>
1010
<artifactId>schema-to-pojo-maven-plugin</artifactId>

0 commit comments

Comments
 (0)