File tree Expand file tree Collapse file tree 1 file changed +9
-21
lines changed
Expand file tree Collapse file tree 1 file changed +9
-21
lines changed Original file line number Diff line number Diff line change 66 pull_request :
77 branches : [ "latest" ]
88
9- env :
10- GRADLE_CACHE_KEY : ${{ github.run_id }}-gradle-${{ github.run_number }}-${{ github.run_number }}-${{ github.sha }}
11-
12- permissions :
13- contents : read
14-
159jobs :
1610 build :
1711 runs-on : ubuntu-latest
18- name : Build & Test
12+ strategy :
13+ matrix :
14+ java : [ '17', '21' ]
15+ name : Test
1916 steps :
20- - uses : actions/checkout@v3
21-
22- - name : Set up JDK 17
23- uses : actions/setup-java@v3
17+ - uses : actions/checkout@v4
18+ - name : Set up JDK ${{ matrix.java }}
19+ uses : actions/setup-java@v4
2420 with :
25- java-version : ' 17 '
21+ java-version : ${{ matrix.java }}
2622 distribution : ' temurin'
27-
28- - name : Gradle cache
29- uses : actions/cache@v3
30- with :
31- path : ~/.gradle/caches
32- key : ${{ env.GRADLE_CACHE_KEY }}
33- restore-keys : ${{ env.GRADLE_CACHE_KEY }}
34-
3523 - name : Run tests
36- uses : gradle/gradle-build-action@bd5760595778326ba7f1441bcf7e88b49de61a25 # v2.6.0
24+ uses : gradle/actions/setup-gradle@v3
3725 with :
3826 arguments : test
You can’t perform that action at this time.
0 commit comments