Skip to content

Commit 8c0eaa8

Browse files
authored
Merge 602aee2 into 3bcd8d4
2 parents 3bcd8d4 + 602aee2 commit 8c0eaa8

File tree

1 file changed

+65
-0
lines changed

1 file changed

+65
-0
lines changed
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
name: Test Java with OS Matrix
2+
3+
on:
4+
workflow_dispatch:
5+
6+
env:
7+
MAVEN_OPTS: -Xmx4g -Xms1g
8+
repo_token: ${{secrets.coveralls_token}}
9+
10+
jobs:
11+
build:
12+
name: Build, Test, Coverage
13+
runs-on: windows-latest
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
jdk: [ 8,11,12,13 ]
18+
19+
env:
20+
JDK_VERSION: ${{ matrix.jdk }}
21+
22+
steps:
23+
- name: "Checkout ${{ github.ref }} ( ${{ github.sha }} )"
24+
uses: actions/checkout@v2
25+
with:
26+
persist-credentials: false
27+
28+
- name: Cache local Maven repository
29+
uses: actions/cache@v2
30+
with:
31+
path: ~/.m2/repository
32+
key: build-${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
33+
restore-keys: build-${{ runner.os }}-maven-
34+
35+
- name: Install Matrix JDK
36+
uses: AdoptOpenJDK/install-jdk@v1
37+
with:
38+
version: ${{ matrix.jdk }}
39+
architecture: x64
40+
impl: hotspot
41+
targets: 'JAVA_HOME'
42+
43+
- name: Echo Java Version
44+
run: >
45+
java -version
46+
47+
- name: Test
48+
run: >
49+
mvn clean test
50+
-Dmaven.javadoc.skip=true
51+
-Dgpg.skip=true
52+
53+
- name: Install Dependencies
54+
run: >
55+
mvn clean install -B -V -q
56+
-DskipTests=true
57+
-Dgpg.skip=true
58+
59+
- name: Report
60+
if: ${{ matrix.jdk == 8 && success() }}
61+
run: >
62+
mvn verify coveralls:report -B -V -q
63+
-Dcoveralls-repo-token=${repo_token}
64+
-Dmaven.javadoc.skip=true
65+
-Dgpg.skip=true

0 commit comments

Comments
 (0)