From 103ba5f0a791f1dc46edfd7fea531f760efb7977 Mon Sep 17 00:00:00 2001 From: legobt <6wbvkn0j@anonaddy.me> Date: Tue, 2 May 2023 02:59:54 +0000 Subject: [PATCH] ci: test nodejs v16/v18/v20 --- .github/workflows/nodejs.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index a39ab88..6680f6d 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -3,14 +3,17 @@ name: Node CI on: [push, pull_request] jobs: test: - name: v20 @ ubuntu-latest + name: node @ ubuntu-latest runs-on: ubuntu-latest + strategy: + matrix: + node-version: [16.x, 18.x, 20.x] steps: - uses: actions/checkout@v3 - name: Use Node.js ${{ matrix.node }} uses: actions/setup-node@v3 with: - node-version: 20 + node-version: ${{ matrix.node-version }} - run: npm install - run: npm run build --if-present - run: npm run lint --if-present