Skip to content

Commit 8fbd5b8

Browse files
committed
Update GitHub workflows to JDK 17
1 parent 11c5212 commit 8fbd5b8

File tree

3 files changed

+17
-17
lines changed

3 files changed

+17
-17
lines changed

.github/workflows/checkstyle.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# This workflow will build a Java project with Maven
2-
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven
33

44
name: Java Code Style Check with Maven
55

@@ -11,10 +11,10 @@ jobs:
1111
runs-on: ubuntu-latest
1212

1313
steps:
14-
- uses: actions/checkout@v2
15-
- name: Set up JDK 1.8
16-
uses: actions/setup-java@v1
14+
- uses: actions/checkout@v3
15+
- name: Set up JDK 17
16+
uses: actions/setup-java@v3
1717
with:
18-
java-version: 1.8
18+
java-version: '17'
1919
- name: Code Style Check
2020
run: mvn -B checkstyle:check --file pom.xml

.github/workflows/ci.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,21 @@ jobs:
66
Build:
77
runs-on: ubuntu-latest
88
steps:
9-
- uses: actions/checkout@v1
10-
- name: Set up JDK 1.8
11-
uses: actions/setup-java@v1
9+
- uses: actions/checkout@v3
10+
- name: Set up JDK 17
11+
uses: actions/setup-java@v3
1212
with:
13-
java-version: 1.8
13+
java-version: '17'
1414
- name: Build
1515
run: mvn -DskipTests package --file pom.xml
1616

1717
Test:
1818
runs-on: ubuntu-latest
1919
steps:
20-
- uses: actions/checkout@v1
21-
- name: Set up JDK 1.8
22-
uses: actions/setup-java@v1
20+
- uses: actions/checkout@v3
21+
- name: Set up JDK 17
22+
uses: actions/setup-java@v3
2323
with:
24-
java-version: 1.8
24+
java-version: '17'
2525
- name: Test
2626
run: mvn test --file pom.xml

.github/workflows/sonar.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ jobs:
88
name: SonarQube
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v2
11+
- uses: actions/checkout@v3
1212
with:
1313
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
14-
- name: Set up JDK 11
15-
uses: actions/setup-java@v1
14+
- name: Set up JDK 17
15+
uses: actions/setup-java@v3
1616
with:
17-
java-version: 11
17+
java-version: '17'
1818
- name: Cache SonarCloud packages
1919
uses: actions/cache@v1
2020
with:

0 commit comments

Comments
 (0)