-
Notifications
You must be signed in to change notification settings - Fork 13
49 lines (41 loc) · 1.05 KB
/
pr.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: Pull Request
on:
workflow_dispatch: {}
jobs:
build:
strategy:
fail-fast: false
matrix:
javaVersion: [8, 11, 16, 17]
os: [ubuntu-latest]
gradleVersion: [6.8, 7.0.1, 7.6, 8.0]
include:
- javaVersion: 8
gradleVersion: 6.8
- javaVersion: 11
gradleVersion: 6.8
- javaVersion: 16
gradleVersion: 7.0.1
- javaVersion: 17
gradleVersion: 7.0.1
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v3
with:
distribution: temurin
java-version: ${{ matrix.javaVersion}}
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
with:
gradle-version: ${{ matrix.gradleVersion }}
- name: Execute Gradle build
run: ./gradlew build
- name: Build jar
run: ./gradlew jar
- name: Run tests
run: ./gradlew test
# - name: Build examples
# run: |
# cd examples
# ./../gradlew build