Skip to content

Commit 4d60556

Browse files
authored
ci: sync workflow w/ paramedic (#402)
1 parent 7330fff commit 4d60556

File tree

4 files changed

+50
-30
lines changed

4 files changed

+50
-30
lines changed

.github/workflows/android.yml

+34-10
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ on:
2323
- '**.md'
2424
- 'LICENSE'
2525
- '.eslint*'
26+
2627
pull_request:
2728
paths-ignore:
2829
- '**.md'
@@ -32,20 +33,20 @@ on:
3233
jobs:
3334
test:
3435
name: Android ${{ matrix.versions.android }} Test
35-
runs-on: macos-latest
36+
runs-on: ubuntu-latest
3637
continue-on-error: true
3738

3839
# hoist configurations to top that are expected to be updated
3940
env:
4041
# Storing a copy of the repo
4142
repo: ${{ github.event.pull_request.head.repo.full_name || github.repository }}
4243

43-
node-version: 16
44+
node-version: 20
4445

4546
# These are the default Java configurations used by most tests.
4647
# To customize these options, add "java-distro" or "java-version" to the strategy matrix with its overriding value.
4748
default_java-distro: temurin
48-
default_java-version: 11
49+
default_java-version: 17
4950

5051
# These are the default Android System Image configurations used by most tests.
5152
# To customize these options, add "system-image-arch" or "system-image-target" to the strategy matrix with its overriding value.
@@ -56,38 +57,61 @@ jobs:
5657
strategy:
5758
matrix:
5859
versions:
59-
# Test the lowest minimum supported APIs
6060
- android: 7
6161
android-api: 24
6262

63-
# Test the last 3-4 supported APIs
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+
6476
- android: 10
6577
android-api: 29
6678

6779
- android: 11
6880
android-api: 30
6981

82+
- android: 12
83+
android-api: 31
84+
7085
- android: 12L
7186
android-api: 32
7287

7388
- android: 13
7489
android-api: 33
7590

91+
- android: 14
92+
android-api: 34
93+
7694
timeout-minutes: 60
7795

7896
steps:
79-
- uses: actions/checkout@v3
80-
- uses: actions/setup-node@v3
97+
- uses: actions/checkout@v4
98+
- uses: actions/setup-node@v4
8199
with:
82100
node-version: ${{ env.node-version }}
83-
- uses: actions/setup-java@v3
101+
- uses: actions/setup-java@v4
84102
env:
85103
java-version: ${{ matrix.versions.java-version == '' && env.default_java-version || matrix.versions.java-version }}
86104
java-distro: ${{ matrix.versions.java-distro == '' && env.default_java-distro || matrix.versions.java-distro }}
87105
with:
88106
distribution: ${{ env.java-distro }}
89107
java-version: ${{ env.java-version }}
90108

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+
91115
- name: Run Environment Information
92116
run: |
93117
node --version
@@ -105,7 +129,7 @@ jobs:
105129
if: ${{ endswith(env.repo, '/cordova-paramedic') != true }}
106130
run: npm i -g github:apache/cordova-paramedic
107131

108-
- uses: reactivecircus/android-emulator-runner@d94c3fbe4fe6a29e4a5ba47c12fb47677c73656b
132+
- uses: reactivecircus/android-emulator-runner@v2
109133
env:
110134
system-image-arch: ${{ matrix.versions.system-image-arch == '' && env.default_system-image-arch || matrix.versions.system-image-arch }}
111135
system-image-target: ${{ matrix.versions.system-image-target == '' && env.default_system-image-target || matrix.versions.system-image-target }}
@@ -119,7 +143,7 @@ jobs:
119143
script: echo "Pregenerate the AVD before running Paramedic"
120144

121145
- name: Run paramedic tests
122-
uses: reactivecircus/android-emulator-runner@d94c3fbe4fe6a29e4a5ba47c12fb47677c73656b
146+
uses: reactivecircus/android-emulator-runner@v2
123147
env:
124148
system-image-arch: ${{ matrix.versions.system-image-arch == '' && env.default_system-image-arch || matrix.versions.system-image-arch }}
125149
system-image-target: ${{ matrix.versions.system-image-target == '' && env.default_system-image-target || matrix.versions.system-image-target }}

.github/workflows/chrome.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@ jobs:
3939
# Storing a copy of the repo
4040
repo: ${{ github.event.pull_request.head.repo.full_name || github.repository }}
4141

42-
node-version: 16
42+
node-version: 20
4343

4444
steps:
45-
- uses: actions/checkout@v3
46-
- uses: actions/setup-node@v3
45+
- uses: actions/checkout@v4
46+
- uses: actions/setup-node@v4
4747
with:
4848
node-version: ${{ env.node-version }}
4949

.github/workflows/ios.yml

+10-14
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
# Storing a copy of the repo
4141
repo: ${{ github.event.pull_request.head.repo.full_name || github.repository }}
4242

43-
node-version: 16
43+
node-version: 20
4444

4545
# > Starting April 26, 2021, all iOS and iPadOS apps submitted to the App Store must be built with Xcode 12 and the iOS 14 SDK.
4646
# Because of Apple's requirement, listed above, We will only be using the latest Xcode release for testing.
@@ -50,28 +50,24 @@ jobs:
5050
strategy:
5151
matrix:
5252
versions:
53-
- os-version: macos-11
54-
ios-version: 13.x
55-
xcode-version: 11.x
56-
57-
- os-version: macos-11
58-
ios-version: 14.x
59-
xcode-version: 12.x
60-
61-
- os-version: macos-11
53+
- os-version: macos-12
6254
ios-version: 15.x
6355
xcode-version: 13.x
6456

65-
- os-version: macos-12
57+
- os-version: macos-14
6658
ios-version: 16.x
6759
xcode-version: 14.x
6860

61+
- os-version: macos-14
62+
ios-version: 17.x
63+
xcode-version: 15.x
64+
6965
steps:
70-
- uses: actions/checkout@v3
71-
- uses: actions/setup-node@v3
66+
- uses: actions/checkout@v4
67+
- uses: actions/setup-node@v4
7268
with:
7369
node-version: ${{ env.node-version }}
74-
- uses: maxim-lobanov/setup-xcode@9a697e2b393340c3cacd97468baa318e4c883d98
70+
- uses: maxim-lobanov/setup-xcode@60606e260d2fc5762a71e64e74b2174e8ea3c8bd
7571
env:
7672
xcode-version: ${{ matrix.versions.xcode-version == '' && env.default_xcode-version || matrix.versions.xcode-version }}
7773
with:

.github/workflows/lint.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@ jobs:
3434
name: Lint Test
3535
runs-on: ubuntu-latest
3636
env:
37-
node-version: 16
37+
node-version: 20
3838

3939
steps:
40-
- uses: actions/checkout@v3
41-
- uses: actions/setup-node@v3
40+
- uses: actions/checkout@v4
41+
- uses: actions/setup-node@v4
4242
with:
4343
node-version: ${{ env.node-version }}
4444

0 commit comments

Comments
 (0)