Skip to content

Commit 4ae9d74

Browse files
Updated Sonarcloud workflow to latest actions for checkout, cache and java
1 parent 93f752e commit 4ae9d74

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/SonarCloud.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,22 @@ jobs:
1010
name: Build
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v2
13+
- uses: actions/checkout@v4
1414
with:
1515
fetch-depth: 0
1616
- name: Set up JDK 11
17-
uses: actions/setup-java@v1
17+
uses: actions/setup-java@v4
1818
with:
19-
java-version: 11
19+
distribution: 'temurin'
20+
java-version: 17
2021
- name: Cache SonarCloud packages
21-
uses: actions/cache@v1
22+
uses: actions/cache@v4
2223
with:
2324
path: ~/.sonar/cache
2425
key: ${{ runner.os }}-sonar
2526
restore-keys: ${{ runner.os }}-sonar
2627
- name: Cache Gradle packages
27-
uses: actions/cache@v1
28+
uses: actions/cache@v4
2829
with:
2930
path: ~/.gradle/caches
3031
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}

0 commit comments

Comments
 (0)