66# "License"); you may not use this file except in compliance
77# with the License. You may obtain a copy of the License at
88#
9- # http://www.apache.org/licenses/LICENSE-2.0
9+ # http://www.apache.org/licenses/LICENSE-2.0
1010#
1111# Unless required by applicable law or agreed to in writing,
1212# software distributed under the License is distributed on an
1313# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14- # KIND, either express or implied. See the License for the
14+ # KIND, either express or implied. See the License for the
1515# specific language governing permissions and limitations
1616# under the License.
1717
3030 - ' LICENSE'
3131 - ' .eslint*'
3232
33+ permissions :
34+ contents : read
35+
3336jobs :
3437 test :
3538 name : Android ${{ matrix.versions.android }} Test
4144 # Storing a copy of the repo
4245 repo : ${{ github.event.pull_request.head.repo.full_name || github.repository }}
4346
44- node-version : 20
47+ node-version : 24
4548
4649 # These are the default Java configurations used by most tests.
4750 # To customize these options, add "java-distro" or "java-version" to the strategy matrix with its overriding value.
5760 strategy :
5861 matrix :
5962 versions :
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
75-
76- - android : 10
77- android-api : 29
78-
79- - android : 11
80- android-api : 30
81-
8263 - android : 12
8364 android-api : 31
8465
@@ -91,14 +72,25 @@ jobs:
9172 - android : 14
9273 android-api : 34
9374
75+ - android : 15
76+ android-api : 35
77+
78+ - android : 16
79+ android-api : 36
80+
9481 timeout-minutes : 60
9582
9683 steps :
97- - uses : actions/checkout@v4
98- - uses : actions/setup-node@v4
84+ - uses : actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
85+ with :
86+ persist-credentials : false
87+ fetch-depth : 1
88+
89+ - uses : actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
9990 with :
10091 node-version : ${{ env.node-version }}
101- - uses : actions/setup-java@v4
92+
93+ - uses : actions/setup-java@03ad4de0992f5dab5e18fcb136590ce7c4a0ac95 # v5.6.0
10294 env :
10395 java-version : ${{ matrix.versions.java-version == '' && env.default_java-version || matrix.versions.java-version }}
10496 java-distro : ${{ matrix.versions.java-distro == '' && env.default_java-distro || matrix.versions.java-distro }}
@@ -129,7 +121,7 @@ jobs:
129121 if : ${{ endswith(env.repo, '/cordova-paramedic') != true }}
130122 run : npm i -g github:apache/cordova-paramedic
131123
132- - uses : reactivecircus/android-emulator-runner@v2
124+ - uses : reactivecircus/android-emulator-runner@a421e43855164a8197daf9d8d40fe71c6996bb0d # v2.38.0
133125 env :
134126 system-image-arch : ${{ matrix.versions.system-image-arch == '' && env.default_system-image-arch || matrix.versions.system-image-arch }}
135127 system-image-target : ${{ matrix.versions.system-image-target == '' && env.default_system-image-target || matrix.versions.system-image-target }}
@@ -143,7 +135,7 @@ jobs:
143135 script : echo "Pregenerate the AVD before running Paramedic"
144136
145137 - name : Run paramedic tests
146- uses : reactivecircus/android-emulator-runner@v2
138+ uses : reactivecircus/android-emulator-runner@a421e43855164a8197daf9d8d40fe71c6996bb0d # v2.38.0
147139 env :
148140 system-image-arch : ${{ matrix.versions.system-image-arch == '' && env.default_system-image-arch || matrix.versions.system-image-arch }}
149141 system-image-target : ${{ matrix.versions.system-image-target == '' && env.default_system-image-target || matrix.versions.system-image-target }}
0 commit comments