31
31
build-and-test-jvm :
32
32
runs-on : ubuntu-latest
33
33
steps :
34
- - uses : actions/checkout@v2
34
+ - uses : actions/checkout@v3
35
35
- uses : gradle/wrapper-validation-action@v1
36
36
37
37
- name : create and checkout branch
40
40
run : git checkout -B ${{ github.head_ref }}
41
41
42
42
- name : set up JDK 11
43
- uses : actions/setup-java@v2
43
+ uses : actions/setup-java@v3
44
44
with :
45
45
java-version : 11
46
46
distribution : " temurin"
50
50
run : ./gradlew assembleDebug lintDebug testDebugUnitTest --stacktrace -DskipFormatKtlint
51
51
52
52
- name : Upload APK
53
- uses : actions/upload-artifact@v2
53
+ uses : actions/upload-artifact@v3
54
54
with :
55
55
name : app
56
56
path : app/build/outputs/apk/debug/*.apk
@@ -64,10 +64,10 @@ jobs:
64
64
# api-level 19 is min sdk, but throws errors related to desugaring
65
65
api-level : [ 21, 29 ]
66
66
steps :
67
- - uses : actions/checkout@v2
67
+ - uses : actions/checkout@v3
68
68
69
69
- name : set up JDK 11
70
- uses : actions/setup-java@v2
70
+ uses : actions/setup-java@v3
71
71
with :
72
72
java-version : 11
73
73
distribution : " temurin"
82
82
script : ./gradlew connectedCheck --stacktrace
83
83
84
84
- name : Upload test report when tests fail # because the printed out stacktrace (console) is too short, see also #7553
85
- uses : actions/upload-artifact@v2
85
+ uses : actions/upload-artifact@v3
86
86
if : failure()
87
87
with :
88
88
name : android-test-report-api${{ matrix.api-level }}
@@ -91,19 +91,19 @@ jobs:
91
91
sonar :
92
92
runs-on : ubuntu-latest
93
93
steps :
94
- - uses : actions/checkout@v2
94
+ - uses : actions/checkout@v3
95
95
with :
96
96
fetch-depth : 0 # Shallow clones should be disabled for a better relevancy of analysis
97
97
98
98
- name : Set up JDK 11
99
- uses : actions/setup-java@v2
99
+ uses : actions/setup-java@v3
100
100
with :
101
101
java-version : 11 # Sonar requires JDK 11
102
102
distribution : " temurin"
103
103
cache : ' gradle'
104
104
105
105
- name : Cache SonarCloud packages
106
- uses : actions/cache@v2
106
+ uses : actions/cache@v3
107
107
with :
108
108
path : ~/.sonar/cache
109
109
key : ${{ runner.os }}-sonar
0 commit comments