From 5d0d26aa5fcaa6ff5353e399ac6306fced96e321 Mon Sep 17 00:00:00 2001 From: Bruno Germano Date: Tue, 22 Oct 2024 13:47:45 -0300 Subject: [PATCH] add more node version cover --- .github/workflows/nodejs.yaml | 27 ++++++++++++--------------- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/.github/workflows/nodejs.yaml b/.github/workflows/nodejs.yaml index 81d5b35..506064d 100644 --- a/.github/workflows/nodejs.yaml +++ b/.github/workflows/nodejs.yaml @@ -4,24 +4,21 @@ on: [push] jobs: build: - runs-on: ubuntu-latest strategy: matrix: - node-version: [14.x, 16.x, 18.x] + node-version: [14.x, 16.x, 18.x, 20.x, 22.x] steps: - - uses: actions/checkout@v1 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 - with: - node-version: ${{ matrix.node-version }} - - name: install, build, and test - run: | - npm ci - npm run lint - npm run build - npm run test - env: - CI: true + - uses: actions/checkout@v1 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - name: install, build, and test + run: | + npm ci + npm run lint + npm run build + npm run test