-
Notifications
You must be signed in to change notification settings - Fork 38
58 lines (53 loc) · 1.72 KB
/
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Actions
on: [ push, pull_request ]
jobs:
validation:
name: "Gradle wrapper validation"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: gradle/wrapper-validation-action@v1
build:
name: "Build"
needs: [ validation ]
strategy:
matrix:
os: [ ubuntu-latest, macos-latest ]
java: [ 8, 11, 17, 19 ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: temurin
java-version: ${{ matrix.java }}
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
with:
gradle-version: 7.6
- name: Execute Gradle build
run: ./gradlew build
test:
name: "Test"
needs: [ build ]
runs-on: ubuntu-latest
strategy:
matrix:
java: [ 8, 11, 17, 19 ]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java }}
distribution: temurin
cache: gradle
- run: |
./gradlew clean check --refresh-dependencies
./gradlew clean check --refresh-dependencies -PfasterxmlVersion=2.8.11
./gradlew clean check --refresh-dependencies -PfasterxmlVersion=2.9.10
./gradlew clean check --refresh-dependencies -PfasterxmlVersion=2.10.4
./gradlew clean check --refresh-dependencies -PfasterxmlVersion=2.11.3
./gradlew clean check --refresh-dependencies -PfasterxmlVersion=2.12.3
./gradlew clean check --refresh-dependencies -PfasterxmlVersion=2.13.4
./gradlew clean check --refresh-dependencies -PfasterxmlVersion=2.14.1
./gradlew codeCoverageReport