Skip to content

Commit 482a181

Browse files
committed
update github action to java 21
1 parent 4db7aac commit 482a181

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ jobs:
1212
steps:
1313
- uses: actions/checkout@v3
1414
with:
15-
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
16-
- name: Set up JDK 8
17-
uses: actions/setup-java@v3
15+
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
16+
- name: Set up JDK 21
17+
uses: actions/setup-java@v4
1818
with:
19-
java-version: 8
20-
distribution: 'zulu' # Alternative distribution options are available.
19+
java-version: 21
20+
distribution: "temurin" # Alternative distribution options are available.
2121
- name: Cache SonarCloud packages
2222
uses: actions/cache@v3
2323
with:
@@ -32,6 +32,6 @@ jobs:
3232
restore-keys: ${{ runner.os }}-m2
3333
- name: Build and analyze
3434
env:
35-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
35+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
3636
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
3737
run: mvn -B -DskipTests verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=fayo-labs_spring-api

0 commit comments

Comments
 (0)