Skip to content

Commit 7042c0e

Browse files
committed
Update CI.yml
1 parent 19c0e66 commit 7042c0e

File tree

1 file changed

+20
-26
lines changed

1 file changed

+20
-26
lines changed

.github/workflows/CI.yml

Lines changed: 20 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -12,36 +12,30 @@ on:
1212
branches: "*"
1313

1414
jobs:
15-
build:
16-
runs-on: ${{ matrix.operating-system }}
15+
build-jdk:
16+
runs-on: ubuntu-latest
1717
strategy:
1818
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 ]
2321
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
2726
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
3236
- 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
4438
- name: Codecov
45-
uses: codecov/codecov-action@v2.1.0
39+
uses: codecov/codecov-action@v1
4640
with:
47-
files: ./build/reports/jacoco/test/jacocoTestReport.xml
41+
files: ./build/reports/jacoco/test/jacocoTestReport.xml #optional

0 commit comments

Comments
 (0)