-
-
Notifications
You must be signed in to change notification settings - Fork 39
39 lines (33 loc) · 877 Bytes
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Test
on:
push:
branches:
- '**'
tags-ignore:
- 'v*'
pull_request:
jobs:
test:
name: Test
runs-on: ubuntu-latest
strategy:
matrix:
java: [ 8, 11, 16, 17 ]
steps:
- uses: actions/checkout@v4
- name: Setup Java ${{ matrix.java }}
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java }}
distribution: temurin
- name: Cache Gradle
uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-jdk${{ matrix.java }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-jdk${{ matrix.java }}-gradle-
- name: Test with Gradle
run: ./gradlew test --no-daemon --build-cache