File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 11name : my-actions
22
33on :
4- push :
5- branches :
6- - main
7- pull_request :
8- types : [ opened, synchronize, reopened ]
4+ - push
5+ - pull_request
96
107jobs :
118 build :
129 name : Build and analyze
1310 runs-on : ubuntu-latest
11+
1412 steps :
1513 - uses : actions/checkout@v4
1614 with :
@@ -20,16 +18,19 @@ jobs:
2018 with :
2119 java-version : 21
2220 distribution : ' temurin' # Alternative distribution options are available
21+
2322 - uses : gradle/gradle-build-action@v2
2423 with :
2524 gradle-version : 8.7
2625 arguments : build
26+
2727 - name : Cache SonarQube packages
2828 uses : actions/cache@v4
2929 with :
3030 path : ~/.sonar/cache
3131 key : ${{ runner.os }}-sonar
3232 restore-keys : ${{ runner.os }}-sonar
33+
3334 - name : Cache Gradle packages
3435 uses : actions/cache@v4
3536 with :
You can’t perform that action at this time.
0 commit comments