7
7
branches : [master, f-droid]
8
8
9
9
env :
10
- JAVA_VERSION : 12.x
11
10
ARTIFACT_PATH : ./screenshots
12
11
13
- jobs :
14
- cancel_previous_runs :
15
- name : Cancel Previous Runs
16
- runs-on : ubuntu-20.04
17
- steps :
18
- - uses : styfle/cancel-workflow-action@0.11.0
19
- with :
20
- access_token : ${{ secrets.GITHUB_TOKEN }}
12
+ # Cancel a currently running workflow from the same PR, branch or tag when a new workflow is
13
+ # triggered (ref https://stackoverflow.com/a/72408109)
14
+ concurrency :
15
+ group : ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
16
+ cancel-in-progress : true
21
17
18
+ jobs :
22
19
android-device-tests :
23
20
# use macos to have hardware acceleration https://github.com/ReactiveCircus/android-emulator-runner/issues/46
24
21
runs-on : ${{ matrix.os }}
@@ -37,18 +34,18 @@ jobs:
37
34
fail-fast : false
38
35
steps :
39
36
# Setup Environment
40
- - uses : actions/checkout@v3
37
+ - uses : actions/checkout@v4
41
38
42
- - uses : actions/setup-java@v3
39
+ - uses : actions/setup-java@v4
43
40
with :
44
- java-version : ${{ env.JAVA_VERSION }}
45
- distribution : " zulu "
41
+ java-version : " 17 "
42
+ distribution : " temurin "
46
43
47
44
- name : Install flutter wrapper
48
45
run : ./scripts/install_flutter_wrapper.sh
49
46
50
47
- name : Setup Android SDK and accept licences
51
- uses : android-actions/setup-android@v2
48
+ uses : android-actions/setup-android@v3
52
49
53
50
- name : List android images
54
51
run : sdkmanager --list | grep system-images
@@ -60,15 +57,15 @@ jobs:
60
57
run : .flutter/bin/dart run melos bootstrap
61
58
62
59
- name : Gradle cache
63
- uses : actions/cache@v3
60
+ uses : actions/cache@v4
64
61
with :
65
62
path : |
66
63
~/.gradle/caches
67
64
~/.gradle/wrapper
68
65
key : gradle-${{ runner.os }}-${{ hashFiles('**/*.gradle*') }}-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}-${{ hashFiles('**/buildSrc/**/*.kt') }}
69
66
70
67
- name : AVD cache
71
- uses : actions/cache@v3
68
+ uses : actions/cache@v4
72
69
id : avd-cache
73
70
with :
74
71
path : |
@@ -117,7 +114,7 @@ jobs:
117
114
118
115
- name : " Upload screenshots"
119
116
if : always()
120
- uses : actions/upload-artifact@v3
117
+ uses : actions/upload-artifact@v4
121
118
with :
122
119
name : ${{ matrix.device }}
123
120
path : ${{ env.ARTIFACT_PATH }}
0 commit comments