File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -13,23 +13,36 @@ jobs:
1313 - uses : actions/checkout@v3
1414 with :
1515 fetch-depth : 0 # Shallow clones should be disabled for a better relevancy of analysis
16+
1617 - name : Set up JDK 17
1718 uses : actions/setup-java@v3
1819 with :
1920 java-version : 17
2021 distribution : ' zulu' # Alternative distribution options are available
22+
2123 - name : Cache SonarCloud packages
2224 uses : actions/cache@v3
2325 with :
2426 path : ~/.sonar/cache
2527 key : ${{ runner.os }}-sonar
2628 restore-keys : ${{ runner.os }}-sonar
29+
30+ - name : Setup Gradle
31+ uses : gradle/gradle-build-action@v2
32+ with :
33+ gradle-version : 7.4.2
34+
35+ - name : Generate wrapper
36+ working-directory : docker/service
37+ run : gradle wrapper --gradle-version 7.4.2
38+
2739 - name : Cache Gradle packages
2840 uses : actions/cache@v3
2941 with :
3042 path : ~/.gradle/caches
3143 key : ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
3244 restore-keys : ${{ runner.os }}-gradle
45+
3346 - name : Build and analyze
3447 working-directory : docker/service
3548 env :
You can’t perform that action at this time.
0 commit comments