Skip to content

Commit 6b0846a

Browse files
authored
chore(workflow): sync workflows & configs (#194)
1 parent 374da33 commit 6b0846a

13 files changed

Lines changed: 293 additions & 63 deletions

File tree

.asf.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
# to you under the Apache License, Version 2.0 (the
66
# "License"); you may not use this file except in compliance
77
# with the License. You may obtain a copy of the License at
8-
#
8+
#
99
# http://www.apache.org/licenses/LICENSE-2.0
10-
#
10+
#
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

.gitattributes

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,18 @@
1-
* text eol=lf
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing,
12+
# software distributed under the License is distributed on an
13+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
# KIND, either express or implied. See the License for the
15+
# specific language governing permissions and limitations
16+
# under the License.
17+
18+
* text eol=lf

.github/workflows/android.yml

Lines changed: 22 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
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

@@ -30,6 +30,9 @@ on:
3030
- 'LICENSE'
3131
- '.eslint*'
3232

33+
permissions:
34+
contents: read
35+
3336
jobs:
3437
test:
3538
name: Android ${{ matrix.versions.android }} Test
@@ -41,7 +44,7 @@ jobs:
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.
@@ -57,28 +60,6 @@ jobs:
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 }}

.github/workflows/chrome.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
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

@@ -29,6 +29,9 @@ on:
2929
- 'LICENSE'
3030
- '.eslint*'
3131

32+
permissions:
33+
contents: read
34+
3235
jobs:
3336
test:
3437
name: Chrome Latest Test
@@ -39,11 +42,15 @@ jobs:
3942
# Storing a copy of the repo
4043
repo: ${{ github.event.pull_request.head.repo.full_name || github.repository }}
4144

42-
node-version: 20
45+
node-version: 24
4346

4447
steps:
45-
- uses: actions/checkout@v4
46-
- uses: actions/setup-node@v4
48+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
49+
with:
50+
persist-credentials: false
51+
fetch-depth: 1
52+
53+
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
4754
with:
4855
node-version: ${{ env.node-version }}
4956

.github/workflows/ci.yml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing,
12+
# software distributed under the License is distributed on an
13+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
# KIND, either express or implied. See the License for the
15+
# specific language governing permissions and limitations
16+
# under the License.
17+
18+
name: Node CI
19+
20+
on:
21+
push:
22+
branches-ignore:
23+
- 'dependabot/**'
24+
pull_request:
25+
branches:
26+
- '*'
27+
28+
jobs:
29+
codeql:
30+
name: CodeQL Analysis
31+
runs-on: ubuntu-latest
32+
33+
permissions:
34+
contents: read
35+
security-events: write
36+
37+
steps:
38+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
39+
with:
40+
persist-credentials: false
41+
fetch-depth: 1
42+
43+
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
44+
with:
45+
node-version: 24.x
46+
47+
- uses: github/codeql-action/init@e4fba868fa4b1b91e1fdab776edc8cfbe6e9fb81 # v4.37.3
48+
with:
49+
tools: linked
50+
languages: javascript, actions
51+
queries: security-and-quality
52+
config: |
53+
paths-ignore:
54+
- node_modules
55+
56+
- name: Run npm install
57+
run: npm ci
58+
env:
59+
CI: true
60+
61+
- uses: github/codeql-action/analyze@e4fba868fa4b1b91e1fdab776edc8cfbe6e9fb81 # v4.37.3

.github/workflows/ios.yml

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
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

@@ -30,6 +30,9 @@ on:
3030
- 'LICENSE'
3131
- '.eslint*'
3232

33+
permissions:
34+
contents: read
35+
3336
jobs:
3437
test:
3538
name: iOS ${{ matrix.versions.ios-version }} Test
@@ -41,7 +44,7 @@ jobs:
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
# > 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.
4750
# Because of Apple's requirement, listed above, We will only be using the latest Xcode release for testing.
@@ -51,10 +54,6 @@ jobs:
5154
strategy:
5255
matrix:
5356
versions:
54-
- os-version: macos-13
55-
ios-version: 16.x
56-
xcode-version: 14.x
57-
5857
- os-version: macos-14
5958
ios-version: 17.x
6059
xcode-version: 15.x
@@ -63,12 +62,21 @@ jobs:
6362
ios-version: 18.x
6463
xcode-version: 16.x
6564

65+
- os-version: macos-26
66+
ios-version: 26.x
67+
xcode-version: 26.x
68+
6669
steps:
67-
- uses: actions/checkout@v4
68-
- uses: actions/setup-node@v4
70+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
71+
with:
72+
persist-credentials: false
73+
fetch-depth: 1
74+
75+
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
6976
with:
7077
node-version: ${{ env.node-version }}
71-
- uses: maxim-lobanov/setup-xcode@60606e260d2fc5762a71e64e74b2174e8ea3c8bd
78+
79+
- uses: maxim-lobanov/setup-xcode@ed7a3b1fda3918c0306d1b724322adc0b8cc0a90 # v1.7.0
7280
env:
7381
xcode-version: ${{ matrix.versions.xcode-version == '' && env.default_xcode-version || matrix.versions.xcode-version }}
7482
with:

.github/workflows/lint.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
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

@@ -29,16 +29,23 @@ on:
2929
- '.eslint*'
3030
- '.github/workflow/lint.yml'
3131

32+
permissions:
33+
contents: read
34+
3235
jobs:
3336
test:
3437
name: Lint Test
3538
runs-on: ubuntu-latest
3639
env:
37-
node-version: 20
40+
node-version: 24
3841

3942
steps:
40-
- uses: actions/checkout@v4
41-
- uses: actions/setup-node@v4
43+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
44+
with:
45+
persist-credentials: false
46+
fetch-depth: 1
47+
48+
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
4249
with:
4350
node-version: ${{ env.node-version }}
4451

0 commit comments

Comments
 (0)