From 91d0552f13db816b90a580aa8f97c720bd280046 Mon Sep 17 00:00:00 2001 From: btea <2356281422@qq.com> Date: Sat, 10 May 2025 20:31:26 +0800 Subject: [PATCH 1/3] ci: test on Node.js 24 --- .github/workflows/test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index db6ec16..7165d2e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -17,7 +17,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest] - node: [14, 16, 18, 20, 22] + node: [14, 16, 18, 20, 22, 24] steps: - uses: actions/checkout@v4 with: @@ -31,7 +31,7 @@ jobs: - name: test run: | - if [ "${{ matrix.node }}" == "22" ]; then + if [ "${{ matrix.node }}" == "22" ] || ["${{ matrix.node }}" == "24"]; then npm run test:node22 else npm test From bf2fd34034d170b503ee346d267ef9918684e387 Mon Sep 17 00:00:00 2001 From: btea <2356281422@qq.com> Date: Sat, 10 May 2025 20:35:10 +0800 Subject: [PATCH 2/3] ci: update --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7165d2e..7f70e52 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -31,7 +31,7 @@ jobs: - name: test run: | - if [ "${{ matrix.node }}" == "22" ] || ["${{ matrix.node }}" == "24"]; then + if [ "${{ matrix.node }}" == "22" ] || [ "${{ matrix.node }}" == "24" ]; then npm run test:node22 else npm test From da1e9ba48f3a7208096a6f0f5601897ef5206f72 Mon Sep 17 00:00:00 2001 From: btea <2356281422@qq.com> Date: Sat, 10 May 2025 20:45:23 +0800 Subject: [PATCH 3/3] ci: update --- .github/workflows/test.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7f70e52..ae99bcd 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -31,8 +31,9 @@ jobs: - name: test run: | - if [ "${{ matrix.node }}" == "22" ] || [ "${{ matrix.node }}" == "24" ]; then + case "${{ matrix.node }}" in "20"|"22"|"24") npm run test:node22 - else - npm test - fi + ;;*) + npm test + ;; + esac