aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2021-03-31 01:17:51 +0300
committerGravatar vitalyster2021-03-31 01:25:54 +0300
commit8bb1cfff1a4af8f5d9a993a7385b6a624ca523e4 (patch)
tree4be7f0e28fc759db04e785a89a25c132f3d4acaa /.github
parent43f017a7d5daf9b300a4e18f3fdf8691607364f5 (diff)
Update CI configuration
Diffstat (limited to '.github')
-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: