Skip to content

Commit 0ab8852

Browse files
shaileshmishrashaileshmishra
shaileshmishra
authored and
shaileshmishra
committed
added Below
includeFallback documentation README.md testcase
1 parent 9cc089c commit 0ab8852

File tree

3 files changed

+61
-1
lines changed

3 files changed

+61
-1
lines changed

.github/workflows/maven-publish.yml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# This workflow will build a package using Maven and then publish it to GitHub packages when a release is created
2+
# For more information see: https://github.com/actions/setup-java#apache-maven-with-a-settings-path
3+
4+
name: Maven Package
5+
6+
on:
7+
release:
8+
types: [created]
9+
10+
jobs:
11+
build:
12+
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: actions/checkout@v2
17+
- name: Set up JDK 1.8
18+
uses: actions/setup-java@v1
19+
with:
20+
java-version: 1.8
21+
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
22+
settings-path: ${{ github.workspace }} # location for the settings.xml file
23+
24+
- name: Build with Maven
25+
run: mvn -B package --file pom.xml
26+
27+
- name: Publish to GitHub Packages Apache Maven
28+
run: mvn deploy -s $GITHUB_WORKSPACE/settings.xml
29+
env:
30+
GITHUB_TOKEN: ${{ github.token }}

.github/workflows/maven.yml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# This workflow will build a Java project with Maven
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
3+
4+
name: Java CI with Maven
5+
6+
on:
7+
push:
8+
branches: [ master, include_fallback ]
9+
pull_request:
10+
branches: [ master, include_fallback ]
11+
12+
jobs:
13+
build:
14+
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- uses: actions/checkout@v2
19+
- name: Set up JDK 1.8
20+
uses: actions/setup-java@v1
21+
with:
22+
java-version: 1.8
23+
- name: Build with Maven
24+
run: mvn -B package --file pom.xml

pom.xml

+7-1
Original file line numberDiff line numberDiff line change
@@ -88,14 +88,20 @@
8888
<dependency>
8989
<groupId>junit</groupId>
9090
<artifactId>junit</artifactId>
91-
<version>4.13</version>
91+
<version>4.13.1</version>
9292
<scope>test</scope>
9393
</dependency>
9494
<dependency>
9595
<groupId>org.json</groupId>
9696
<artifactId>json</artifactId>
9797
<version>20190722</version>
9898
</dependency>
99+
<dependency>
100+
<groupId>com.contentstack.sdk</groupId>
101+
<artifactId>java</artifactId>
102+
<version>1.5.3</version>
103+
<scope>test</scope>
104+
</dependency>
99105
</dependencies>
100106

101107

0 commit comments

Comments
 (0)