From 9564da5d2229a09fa9e3356ac75f53433844a2a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B1=85=E6=88=8E=E6=B0=8F?= Date: Tue, 23 Dec 2025 21:32:42 +0800 Subject: [PATCH] nodejs workflow: test latest and LTS versions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit avoid latest node_version × macos-14 combination which eventuallly becomes unsupported. --- .github/workflows/nodejs.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 23fe7bc9e..6d568ec06 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -12,9 +12,15 @@ jobs: strategy: matrix: - node-version: [20.x, 22.x, latest] - os: [ubuntu-latest, macos-latest, macos-14] - + # Bleeding Edge: Latest Node × Latest OS + os: [ubuntu-latest, macos-latest] + node-version: [latest] + # Stable: Node 20, 22 (LTS) on macOS 14 (ARM64) + include: + - os: macos-14 + node-version: 22 + - os: macos-14 + node-version: 20 steps: - uses: actions/checkout@v4 - name: Use Node.js ${{ matrix.node-version }}