From 13f8748b04cf17650bb25c2d9481a89b7863a8cb Mon Sep 17 00:00:00 2001 From: cenfun Date: Thu, 21 Nov 2024 10:07:47 +0800 Subject: [PATCH 1/2] support node 22 --- .github/workflows/ci.yml | 26 ++++++++++++++++++++++---- 1 file changed, 22 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c371d2ca..b79bd2eb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,12 +24,9 @@ jobs: strategy: fail-fast: false matrix: - node-version: - - '20' - - '18' + node-version: [18, 20] runs-on: ubuntu-latest - name: Test Node ${{ matrix.node-version }} steps: @@ -54,6 +51,27 @@ jobs: name: artifact-${{ matrix.node-version }} path: ./docs + test-experimental: + continue-on-error: true + runs-on: ubuntu-latest + name: Test Node 22 + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Use Node.js version + uses: actions/setup-node@v4 + with: + node-version: 22 + cache: '' + - run: npm install + - run: npx playwright install --with-deps + - run: npm run build + - run: npm run test + env: + FORCE_COLOR: true + deploy: if: github.ref == 'refs/heads/main' needs: test From b20b7bf9ff9fed02183493bf53bf781093f09075 Mon Sep 17 00:00:00 2001 From: cenfun Date: Thu, 21 Nov 2024 10:13:01 +0800 Subject: [PATCH 2/2] continue-on-error: true for 22 --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b79bd2eb..3879f576 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -52,7 +52,6 @@ jobs: path: ./docs test-experimental: - continue-on-error: true runs-on: ubuntu-latest name: Test Node 22 @@ -69,6 +68,7 @@ jobs: - run: npx playwright install --with-deps - run: npm run build - run: npm run test + continue-on-error: true env: FORCE_COLOR: true