12
12
branches : " *"
13
13
14
14
jobs :
15
- build :
16
- runs-on : ${{ matrix.operating-system }}
15
+ build-jdk :
16
+ runs-on : ubuntu-latest
17
17
strategy :
18
18
matrix :
19
- operating-system : [ ubuntu-latest, macOS-latest, windows-latest ]
20
- # Use both LTS releases and latest one for tests
21
- jdk : [ 11, 17, 18 ]
22
-
19
+ # Use both LTS releases and latest one
20
+ jdk : [ 8, 13, 17, 18 ]
23
21
steps :
24
- - uses : actions/checkout@v3
25
- - name : Set up JDK 1
26
- uses : actions/setup-java@v3
22
+ - name : Checkout repo
23
+ uses : actions/checkout@v2
24
+ - name : Set up OpenJDK
25
+ uses : actions/setup-java@v1
27
26
with :
28
- java-version : ' 17'
29
- distribution : ' adopt'
30
- - name : Validate Gradle wrapper
31
- uses : gradle/wrapper-validation-action@e6e38bacfdf1a337459f332974bb2327a31aaf4b
27
+ java-version : ${{ matrix.jdk }}
28
+ - name : Install python
29
+ run : sudo apt install -y python3 python3-setuptools python3-pip
30
+ - name : Update pip
31
+ run : pip3 install --upgrade pip
32
+ - name : Install libraries via pip (xmltodict and wget)
33
+ run : pip3 install xmltodict wget
34
+ - name : Grant execute permission for gradlew
35
+ run : chmod +x gradlew
32
36
- name : Build with Gradle
33
- uses : gradle/gradle-build-action@0d13054264b0bb894ded474f08ebb30921341cee
34
- with :
35
- arguments : -Pclean-release build
36
- - name : Test with Gradle
37
- uses : gradle/gradle-build-action@0d13054264b0bb894ded474f08ebb30921341cee
38
- with :
39
- arguments : test
40
- - name : TestCoverage with Gradle
41
- uses : gradle/gradle-build-action@0d13054264b0bb894ded474f08ebb30921341cee
42
- with :
43
- arguments : jacocoTestReport
37
+ run : ./gradlew clean check jacocoTestReport
44
38
- name : Codecov
45
- uses : codecov/codecov-action@v2.1.0
39
+ uses : codecov/codecov-action@v1
46
40
with :
47
- files : ./build/reports/jacoco/test/jacocoTestReport.xml
41
+ files : ./build/reports/jacoco/test/jacocoTestReport.xml # optional
0 commit comments