This is an automated email from the ASF dual-hosted git repository.
erisu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cordova-ios.git
The following commit(s) were added to refs/heads/master by this push:
new eb65a51e chore(workflow): more refactoring (#1674)
eb65a51e is described below
commit eb65a51e14978a2a129fc4c04ce5350baf6ae85c
Author: エリス <[email protected]>
AuthorDate: Thu Jul 2 15:39:10 2026 +0900
chore(workflow): more refactoring (#1674)
* chore(workflow): more refactoring
* Rename 'darwin' job to 'test-native'
The 'test-native' job will run only xcode tests.
It will run on the 'macos-15', 'macos-26', and 'macos-26-intel'
environment.
It continues to setup node, but will only run again the 'latest'
version. It is required for building 'cordova.js' which is still
used in native testing.
* Rename 'non-darwin' job to 'test-node'
The 'test-node' job will run node tests & code coverage in all
environments: 'ubuntu-latest', 'windows-latest', 'macos-latest'
A Darwin setup step was also added for installing 'ios-deploy'.
* chore(workflow): improve labeling
---
.github/workflows/ci.yml | 43 +++++++++++++++++++------------------------
1 file changed, 19 insertions(+), 24 deletions(-)
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 98510c10..a40e4fab 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -15,7 +15,7 @@
# specific language governing permissions and limitations
# under the License.
-name: Node CI
+name: CI
on:
push:
@@ -52,8 +52,8 @@ jobs:
- uses:
github/codeql-action/analyze@8aad20d150bbac5944a9f9d289da16a4b0d87c1e # v4.36.2
- darwin:
- name: NodeJS ${{ matrix.node-version }} on ${{ matrix.os }}
+ test-native:
+ name: Native Testing on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
permissions:
@@ -61,11 +61,10 @@ jobs:
strategy:
matrix:
- node-version: [20.x, 22.x, 24.x, 26.x]
- os: [macos-26]
+ os: [macos-15, macos-26, macos-26-intel]
env:
- CDV_IOS_SIM: iPhone 17
+ CDV_IOS_SIM: ${{ matrix.os == 'macos-15' && 'iPhone 16e' || 'iPhone 17'
}}
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 #
v7.0.0
@@ -73,10 +72,9 @@ jobs:
persist-credentials: false
fetch-depth: 1
- - name: Use Node.js ${{ matrix.node-version }}
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e #
v6.4.0
+ - uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e #
v6.4.0
with:
- node-version: ${{ matrix.node-version }}
+ node-version: latest
- name: Environment Information
run: |
@@ -91,20 +89,13 @@ jobs:
- name: npm install and test
timeout-minutes: 40
run: |
- npm i -g ios-deploy
- npm cit
+ npm ci
+ npm run test:xcode
env:
CI: true
- - uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f
# v7.0.0
- if: success()
- with:
- name: ${{ runner.os }} node.js ${{ matrix.node-version }} (darwin)
- token: ${{ secrets.CORDOVA_CODECOV_TOKEN }}
- fail_ci_if_error: false
-
- non-darwin:
- name: NodeJS ${{ matrix.node-version }} on ${{ matrix.os }}
+ test-node:
+ name: NodeJS ${{ matrix.node-version }} Testing on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
permissions:
@@ -113,7 +104,7 @@ jobs:
strategy:
matrix:
node-version: [20.x, 22.x, 24.x, 26.x]
- os: [ubuntu-latest, windows-latest]
+ os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 #
v7.0.0
@@ -121,8 +112,7 @@ jobs:
persist-credentials: false
fetch-depth: 1
- - name: Use Node.js ${{ matrix.node-version }}
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e #
v6.4.0
+ - uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e #
v6.4.0
with:
node-version: ${{ matrix.node-version }}
@@ -131,6 +121,11 @@ jobs:
node --version
npm --version
+ - name: Setup ios-deploy for Darwin
+ if: runner.os == 'macOS'
+ run: |
+ npm i -g ios-deploy
+
- name: npm install and test
timeout-minutes: 40
run: |
@@ -143,6 +138,6 @@ jobs:
- uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f
# v7.0.0
if: success()
with:
- name: ${{ runner.os }} node.js ${{ matrix.node-version }}
(non-darwin)
+ name: ${{ runner.os }} node.js ${{ matrix.node-version }}
token: ${{ secrets.CORDOVA_CODECOV_TOKEN }}
fail_ci_if_error: false
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]