-
Notifications
You must be signed in to change notification settings - Fork 60
34 lines (31 loc) · 897 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
# This workflow will build a Java project with Gradle
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
name: Test
on:
push:
branches:
- '*'
pull_request:
branches: [ master ]
jobs:
build:
strategy:
fail-fast: false
matrix:
java-version:
- 11
- 17
runs-on: ubuntu-latest
name: 'Test (JDK ${{ matrix.java-version }})'
steps:
- uses: actions/checkout@v4
- name: 'Set up JDK ${{ matrix.java-version }}'
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java-version }}
distribution: liberica
- name: 'Run tests'
uses: burrunan/gradle-cache-action@v1
with:
job-id: jdk${{ matrix.java-version }}
arguments: --scan --no-parallel --no-daemon build