Skip to content

Commit d5a1ad8

Browse files
committed
CI build/test java 8
1 parent 15bd3af commit d5a1ad8

File tree

2 files changed

+46
-1
lines changed

2 files changed

+46
-1
lines changed

.github/workflows/maven-master-pulls.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,29 @@ jobs:
2828
- name: Build with Maven
2929
run: mvn -B -U verify --file pom.xml
3030

31+
build-java8:
32+
33+
runs-on: ubuntu-latest
34+
strategy:
35+
matrix:
36+
java: [ 8 ]
37+
38+
steps:
39+
- uses: actions/checkout@v2
40+
- name: Set up Java
41+
uses: actions/setup-java@v1
42+
with:
43+
java-version: ${{ matrix.java }}
44+
- name: Cache local Maven repository
45+
uses: actions/cache@v2
46+
with:
47+
path: ~/.m2/repository
48+
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
49+
restore-keys: |
50+
${{ runner.os }}-maven-
51+
- name: Build with Maven
52+
run: mvn -B -U clean verify -DskipTests -Dmaven.test.skip=true -Dmaven.site.skip=true -Dmaven.javadoc.skip=true -Psamples-java8 --file pom.xml
53+
3154
scan-with-lacework:
3255
name: Trigger LaceWork Scanning
3356
runs-on: ubuntu-latest

.github/workflows/maven-master.yml

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,26 @@ jobs:
5656
docker push $DOCKER_CODEGEN_CLI_IMAGE_NAME:unstable
5757
else
5858
echo "not deploying release nor building and pushing release docker image: " ${MY_POM_VERSION}
59-
fi
59+
fi
60+
build-java8:
61+
62+
runs-on: ubuntu-latest
63+
strategy:
64+
matrix:
65+
java: [ 8 ]
66+
67+
steps:
68+
- uses: actions/checkout@v2
69+
- name: Set up Java
70+
uses: actions/setup-java@v1
71+
with:
72+
java-version: ${{ matrix.java }}
73+
- name: Cache local Maven repository
74+
uses: actions/cache@v2
75+
with:
76+
path: ~/.m2/repository
77+
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
78+
restore-keys: |
79+
${{ runner.os }}-maven-
80+
- name: Build with Maven
81+
run: mvn -B -U clean verify -DskipTests -Dmaven.test.skip=true -Dmaven.site.skip=true -Dmaven.javadoc.skip=true -Psamples-java8 --file pom.xml

0 commit comments

Comments
 (0)