-
Notifications
You must be signed in to change notification settings - Fork 13
41 lines (38 loc) · 982 Bytes
/
main.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
40
41
name: CI
on:
push:
branches:
- master
pull_request:
branches:
- '*'
# https://help.github.com/en/actions/automating-your-workflow-with-github-actions/software-installed-on-github-hosted-runners
jobs:
build:
strategy:
fail-fast: true
matrix:
java-version:
- 8
- 11
gradle-version: [wrapper]
name: 'Test, Java ${{ matrix.java-version }}'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 50
submodules: true
- name: 'Set up JDK ${{ matrix.java-version }}'
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java-version }}
distribution: 'zulu'
- name: 'Test'
uses: burrunan/gradle-cache-action@v1
with:
job-id: jdk${{ matrix.java-version }}
gradle-version: ${{ matrix.gradle-version }}
arguments: |
--no-parallel --no-daemon --scan
build