@@ -26,15 +26,15 @@ jobs:
2626 steps :
2727 - uses : actions/checkout@v3
2828 - uses : gradle/wrapper-validation-action@v1
29- - uses : actions/setup-java@v2
29+ - uses : actions/setup-java@v3
3030 with :
3131 distribution : ' adopt'
3232 java-version : 11
3333 - name : Set up Python 3.8
3434 uses : actions/setup-python@v3
3535 with :
3636 python-version : 3.8
37- - uses : actions/cache@v2
37+ - uses : actions/cache@v3
3838 with :
3939 path : |
4040 ~/.gradle/caches
4343 restore-keys : |
4444 ${{ runner.os }}-gradle-
4545 - name : Start synapse server
46- uses : michaelkaye/setup-matrix-synapse@v0.3.0
46+ uses : michaelkaye/setup-matrix-synapse@v1.0.1
4747 with :
4848 uploadLogs : true
4949 httpPort : 8080
@@ -174,15 +174,15 @@ jobs:
174174 # package: class PermalinkParserTest
175175 - name : Find Comment
176176 if : always() && github.event_name == 'pull_request'
177- uses : peter-evans/find-comment@v1
177+ uses : peter-evans/find-comment@v2
178178 id : fc
179179 with :
180180 issue-number : ${{ github.event.pull_request.number }}
181181 comment-author : ' github-actions[bot]'
182182 body-includes : Integration Tests Results
183183 - name : Publish results to PR
184184 if : always() && github.event_name == 'pull_request'
185- uses : peter-evans/create-or-update-comment@v1
185+ uses : peter-evans/create-or-update-comment@v2
186186 with :
187187 comment-id : ${{ steps.fc.outputs.comment-id }}
188188 issue-number : ${{ github.event.pull_request.number }}
@@ -196,7 +196,7 @@ jobs:
196196 - `[org.matrix.android.sdk.PermalinkParserTest]`<br>${{ steps.get-comment-body-permalink.outputs.permalink }}
197197 edit-mode : replace
198198 - name : Upload Test Report Log
199- uses : actions/upload-artifact@v2
199+ uses : actions/upload-artifact@v3
200200 if : always()
201201 with :
202202 name : integrationtest-error-results
@@ -221,7 +221,7 @@ jobs:
221221 uses : actions/setup-python@v3
222222 with :
223223 python-version : 3.8
224- - uses : actions/cache@v2
224+ - uses : actions/cache@v3
225225 with :
226226 path : |
227227 ~/.gradle/caches
@@ -230,12 +230,12 @@ jobs:
230230 restore-keys : |
231231 ${{ runner.os }}-gradle-
232232 - name : Start synapse server
233- uses : michaelkaye/setup-matrix-synapse@v0.3.0
233+ uses : michaelkaye/setup-matrix-synapse@v1.0.1
234234 with :
235235 uploadLogs : true
236236 httpPort : 8080
237237 disableRateLimiting : true
238- - uses : actions/setup-java@v2
238+ - uses : actions/setup-java@v3
239239 with :
240240 distribution : ' adopt'
241241 java-version : ' 11'
@@ -256,7 +256,7 @@ jobs:
256256 adb logcat >> emulator.log &
257257 ./gradlew $CI_GRADLE_ARG_PROPERTIES connectedGplayDebugAndroidTest -Pandroid.testInstrumentationRunnerArguments.class=im.vector.app.ui.UiAllScreensSanityTest || (adb pull storage/emulated/0/Pictures/failure_screenshots && exit 1 )
258258 - name : Upload Test Report Log
259- uses : actions/upload-artifact@v2
259+ uses : actions/upload-artifact@v3
260260 if : always()
261261 with :
262262 name : uitest-error-results
@@ -265,14 +265,15 @@ jobs:
265265 failure_screenshots/
266266
267267 codecov-units :
268+ name : Unit tests with code coverage
268269 runs-on : macos-latest
269270 steps :
270271 - uses : actions/checkout@v3
271- - uses : actions/setup-java@v2
272+ - uses : actions/setup-java@v3
272273 with :
273274 distribution : ' adopt'
274275 java-version : ' 11'
275- - uses : actions/cache@v2
276+ - uses : actions/cache@v3
276277 with :
277278 path : |
278279 ~/.gradle/caches
@@ -282,25 +283,26 @@ jobs:
282283 ${{ runner.os }}-gradle-
283284 - run : ./gradlew allCodeCoverageReport $CI_GRADLE_ARG_PROPERTIES
284285 - name : Upload Codecov data
285- uses : actions/upload-artifact@v2
286+ uses : actions/upload-artifact@v3
286287 if : always()
287288 with :
288289 name : codecov-xml
289290 path : |
290291 build/reports/jacoco/allCodeCoverageReport/allCodeCoverageReport.xml
291292
292293 sonarqube :
294+ name : Sonarqube upload
293295 runs-on : macos-latest
294- if : always()
296+ if : always() && github.event_name == 'schedule'
295297 needs :
296298 - codecov-units
297299 steps :
298300 - uses : actions/checkout@v3
299- - uses : actions/setup-java@v2
301+ - uses : actions/setup-java@v3
300302 with :
301303 distribution : ' adopt'
302304 java-version : ' 11'
303- - uses : actions/cache@v2
305+ - uses : actions/cache@v3
304306 with :
305307 path : |
306308 ~/.gradle/caches
@@ -317,8 +319,9 @@ jobs:
317319 env :
318320 ORG_GRADLE_PROJECT_SONAR_LOGIN : ${{ secrets.SONAR_TOKEN }}
319321
320- # Notify the channel about scheduled runs, do not notify for manually triggered runs
322+ # Notify the channel about scheduled runs, or pushes to the release branches, do not notify for manually triggered runs
321323 notify :
324+ name : Notify matrix
322325 runs-on : ubuntu-latest
323326 needs :
324327 - integration-tests
@@ -327,10 +330,9 @@ jobs:
327330 if : always() && github.event_name != 'workflow_dispatch'
328331 # No concurrency required, runs every time on a schedule.
329332 steps :
330- - uses : michaelkaye/matrix-hookshot-action@v0.3 .0
333+ - uses : michaelkaye/matrix-hookshot-action@v1.0 .0
331334 with :
332335 github_token : ${{ secrets.GITHUB_TOKEN }}
333- matrix_access_token : ${{ secrets.ELEMENT_ANDROID_NOTIFICATION_ACCESS_TOKEN }}
334- matrix_room_id : ${{ secrets.ELEMENT_ANDROID_INTERNAL_ROOM_ID }}
335- text_template : " Nightly test run: {{#each job_statuses }}{{#with this }}{{#if completed }} {{name}} {{conclusion}} at {{completed_at}}, {{/if}}{{/with}}{{/each}}"
336- html_template : " Nightly test run results: {{#each job_statuses }}{{#with this }}{{#if completed }}<br />{{name}} {{conclusion}} at {{completed_at}} <a href=\" {{html_url}}\" >[details]</a>{{/if}}{{/with}}{{/each}}"
336+ hookshot_url : ${{ secrets.ELEMENT_ANDROID_HOOKSHOT_URL }}
337+ text_template : " {{#if '${{ github.event_name }}' == 'schedule' }}Nightly test run{{else}}Test run (on ${{ github.ref }}){{/if }}: {{#each job_statuses }}{{#with this }}{{#if completed }} {{name}} {{conclusion}} at {{completed_at}}, {{/if}}{{/with}}{{/each}}"
338+ html_template : " {{#if '${{ github.event_name }}' == 'schedule' }}Nightly test run{{else}}Test run (on ${{ github.ref }}){{/if }}: {{#each job_statuses }}{{#with this }}{{#if completed }}<br />{{icon conclusion}} {{name}} <font color='{{color conclusion}}'>{{conclusion}} at {{completed_at}} <a href=\" {{html_url}}\" >[details]</a></font>{{/if}}{{/with}}{{/each}}"
0 commit comments