-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: upgrade gradle & java compatibility (#167)
- Loading branch information
1 parent
842045f
commit ef36056
Showing
8 changed files
with
226 additions
and
170 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,22 +14,19 @@ jobs: | |
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ github.head_ref }} | ||
|
||
- name: Merge Conflict finder | ||
uses: olivernybroe/[email protected] | ||
|
||
- name: Use Java Version 8 | ||
uses: actions/setup-java@v2 | ||
- name: Use Java 17 | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: "adopt" | ||
java-version: 8 | ||
distribution: "temurin" | ||
java-version: "17" | ||
cache: "gradle" | ||
|
||
- name: Format code | ||
run: gradle format | ||
run: ./gradlew formatCode | ||
|
||
- name: Commit fixed code | ||
uses: stefanzweifel/git-auto-commit-action@v4 | ||
|
@@ -41,30 +38,48 @@ jobs: | |
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
# test against the latest update of each major Java version, as well as specific updates of LTS versions: | ||
java: [8, 11, 15, 16, 17, 18, 19, 20, 21, 22] | ||
java: [17, 18, 19, 20, 21] | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ github.head_ref }} | ||
|
||
- name: Merge Conflict finder | ||
uses: olivernybroe/[email protected] | ||
|
||
- name: Use Java Version ${{ matrix.java }} | ||
uses: actions/setup-java@v2 | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: "zulu" | ||
distribution: "temurin" | ||
java-version: ${{ matrix.java }} | ||
cache: "gradle" | ||
|
||
- name: Install | ||
run: gradle dependencies | ||
- name: Install Dependencies | ||
run: ./gradlew dependencies | ||
|
||
- name: Test | ||
run: gradle test && gradle jacocoTestReport | ||
- name: Run Tests | ||
run: ./gradlew test jacocoTestReport | ||
|
||
- name: Upload Test Results | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: test-results | ||
path: build/reports/tests/test | ||
|
||
- name: Upload Coverage Report | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: code-coverage-report | ||
path: build/reports/jacoco/test/html | ||
|
||
- name: Upload Jacoco XML Report | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: jacoco-xml-report | ||
path: build/reports/jacoco/test/jacocoTestReport.xml | ||
|
||
- name: Codecov | ||
run: bash <(curl -s https://codecov.io/bash) -t ${{ secrets.CODECOV_TOKEN }} | ||
uses: codecov/codecov-action@v3 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
files: build/reports/jacoco/test/jacocoTestReport.xml | ||
fail_ci_if_error: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
Oops, something went wrong.