23
23
- ' **.md'
24
24
- ' LICENSE'
25
25
- ' .eslint*'
26
+
26
27
pull_request :
27
28
paths-ignore :
28
29
- ' **.md'
32
33
jobs :
33
34
test :
34
35
name : Android ${{ matrix.versions.android }} Test
35
- runs-on : macos -latest
36
+ runs-on : ubuntu -latest
36
37
continue-on-error : true
37
38
38
39
# hoist configurations to top that are expected to be updated
39
40
env :
40
41
# Storing a copy of the repo
41
42
repo : ${{ github.event.pull_request.head.repo.full_name || github.repository }}
42
43
43
- node-version : 16
44
+ node-version : 20
44
45
45
46
# These are the default Java configurations used by most tests.
46
47
# To customize these options, add "java-distro" or "java-version" to the strategy matrix with its overriding value.
47
48
default_java-distro : temurin
48
- default_java-version : 11
49
+ default_java-version : 17
49
50
50
51
# These are the default Android System Image configurations used by most tests.
51
52
# To customize these options, add "system-image-arch" or "system-image-target" to the strategy matrix with its overriding value.
@@ -56,11 +57,22 @@ jobs:
56
57
strategy :
57
58
matrix :
58
59
versions :
59
- # Test the lowest minimum supported APIs
60
- - android : 5.1
61
- android-api : 22
60
+ - android : 7
61
+ android-api : 24
62
+
63
+ - android : 7.1
64
+ android-api : 25
65
+
66
+ - android : 8
67
+ android-api : 26
68
+
69
+ - android : 8.1
70
+ android-api : 27
71
+ system-image-arch : x86
72
+
73
+ - android : 9
74
+ android-api : 28
62
75
63
- # Test the last 3-4 supported APIs
64
76
- android : 10
65
77
android-api : 29
66
78
@@ -73,21 +85,33 @@ jobs:
73
85
- android : 12L
74
86
android-api : 32
75
87
88
+ - android : 13
89
+ android-api : 33
90
+
91
+ - android : 14
92
+ android-api : 34
93
+
76
94
timeout-minutes : 60
77
95
78
96
steps :
79
- - uses : actions/checkout@v3
80
- - uses : actions/setup-node@v3
97
+ - uses : actions/checkout@v4
98
+ - uses : actions/setup-node@v4
81
99
with :
82
100
node-version : ${{ env.node-version }}
83
- - uses : actions/setup-java@v3
101
+ - uses : actions/setup-java@v4
84
102
env :
85
103
java-version : ${{ matrix.versions.java-version == '' && env.default_java-version || matrix.versions.java-version }}
86
104
java-distro : ${{ matrix.versions.java-distro == '' && env.default_java-distro || matrix.versions.java-distro }}
87
105
with :
88
106
distribution : ${{ env.java-distro }}
89
107
java-version : ${{ env.java-version }}
90
108
109
+ - name : Enable KVM group perms
110
+ run : |
111
+ echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
112
+ sudo udevadm control --reload-rules
113
+ sudo udevadm trigger --name-match=kvm
114
+
91
115
- name : Run Environment Information
92
116
run : |
93
117
node --version
@@ -105,7 +129,7 @@ jobs:
105
129
if : ${{ endswith(env.repo, '/cordova-paramedic') != true }}
106
130
run : npm i -g github:apache/cordova-paramedic
107
131
108
- - uses : reactivecircus/android-emulator-runner@5de26e4bd23bf523e8a4b7f077df8bfb8e52b50e
132
+ - uses : reactivecircus/android-emulator-runner@v2
109
133
env :
110
134
system-image-arch : ${{ matrix.versions.system-image-arch == '' && env.default_system-image-arch || matrix.versions.system-image-arch }}
111
135
system-image-target : ${{ matrix.versions.system-image-target == '' && env.default_system-image-target || matrix.versions.system-image-target }}
@@ -119,7 +143,7 @@ jobs:
119
143
script : echo "Pregenerate the AVD before running Paramedic"
120
144
121
145
- name : Run paramedic tests
122
- uses : reactivecircus/android-emulator-runner@5de26e4bd23bf523e8a4b7f077df8bfb8e52b50e
146
+ uses : reactivecircus/android-emulator-runner@v2
123
147
env :
124
148
system-image-arch : ${{ matrix.versions.system-image-arch == '' && env.default_system-image-arch || matrix.versions.system-image-arch }}
125
149
system-image-target : ${{ matrix.versions.system-image-target == '' && env.default_system-image-target || matrix.versions.system-image-target }}
0 commit comments