From 92a737252b2d391b4e29f4c603f1b4df03205009 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=A5=E6=B5=A9?= Date: Mon, 14 Oct 2024 10:48:27 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9B=B4=E6=96=B0=20GitHub=20Actions?= =?UTF-8?q?=20=E5=B7=A5=E4=BD=9C=E6=B5=81=EF=BC=8C=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E5=A4=9A=E5=B9=B3=E5=8F=B0=E5=92=8C=E5=A4=9A=20Node=20?= =?UTF-8?q?=E7=89=88=E6=9C=AC=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/setup-node-environment.yml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/setup-node-environment.yml b/.github/workflows/setup-node-environment.yml index 36bf760..5960818 100644 --- a/.github/workflows/setup-node-environment.yml +++ b/.github/workflows/setup-node-environment.yml @@ -35,7 +35,11 @@ jobs: node -v; pnpm node -v; - job-2: # 测试 .npmrc 文件没有 use-node-version 字段 + _npmrc_no_use_node_version: + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest, windows-latest, macos-latest] runs-on: ubuntu-latest steps: - uses: actions/checkout@main @@ -56,9 +60,13 @@ jobs: node -v; pnpm node -v; - job-3: + actions_setup_node_v4: runs-on: ubuntu-latest + strategy: + matrix: + node-version: [18, 20, 22, lts/*] steps: - - uses: actions/setup-node@v4 + - name: "node-version: ${{ matrix.node-version }}" + uses: actions/setup-node@v4 with: - node-version: 18 + node-version: ${{ matrix.node-version }}