-
Notifications
You must be signed in to change notification settings - Fork 6
49 lines (44 loc) · 1.18 KB
/
ci.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
42
43
44
45
46
47
48
49
name: CI checks
on: [push, pull_request]
jobs:
build:
name: Test with Java ${{ matrix.java }}
runs-on: ubuntu-latest
strategy:
matrix:
java: [10, 11, 12, 13, 14, 15]
steps:
- uses: actions/checkout@v3
- name: Set up Java
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: ${{ matrix.java }}
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build and test
run: ./gradlew build
build-old:
name: Test with Java ${{ matrix.java }}
runs-on: ubuntu-latest
strategy:
matrix:
java: [7, 8, 9]
steps:
- uses: actions/checkout@v3
- name: Set up target Java
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: ${{ matrix.java }}
- name: Set TARGET_JAVA_HOME
run: echo "TARGET_JAVA_HOME=$JAVA_HOME" >> $GITHUB_ENV
- name: Set up Java 10 for running Gradle
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 10
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build and test
run: ./gradlew build