aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/ci.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/ci.yml')
-rw-r--r--.github/workflows/ci.yml15
1 files changed, 13 insertions, 2 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 80a41df7..b9b8253f 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -5,12 +5,23 @@ on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-20.04
+ strategy:
+ matrix:
+ java: [ 11, 15, 16 ]
+ name: JDK ${{ matrix.java }}
steps:
- uses: actions/checkout@v2
- - name: Set up JDK
+ - name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v1
with:
- java-version: 15
+ java-version: ${{ matrix.java }}
+ - name: Cache Maven modules
+ uses: actions/cache@v2
+ with:
+ path: ~/.m2/repository
+ key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
+ restore-keys: |
+ ${{ runner.os }}-maven-
- name: Cache NPM modules
uses: actions/cache@v2
env: