File tree Expand file tree Collapse file tree 3 files changed +17
-17
lines changed
Expand file tree Collapse file tree 3 files changed +17
-17
lines changed Original file line number Diff line number Diff line change 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
44name : 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
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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 :
You can’t perform that action at this time.
0 commit comments