From b642a9177504dcb167300bb84e137c0dca867e1a Mon Sep 17 00:00:00 2001 From: Revone Date: Thu, 21 Sep 2023 13:01:37 +0800 Subject: [PATCH] [ci] node version setting updated --- .github/workflows/ci.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 48db313..3adfce8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,15 +8,17 @@ on: jobs: build: runs-on: ubuntu-latest - + strategy: + matrix: + node-version: [14.x, 16.x, 18.x, 20.x] steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 - - name: Set up Node.js - uses: actions/setup-node@v2 + - name: Set up Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 with: - node-version: 19 + node-version: ${{ matrix.node-version }} - name: Install dependencies run: npm install