From 1ef992c6519bfb0db5cc0b047fd6dfd4d2b399cd Mon Sep 17 00:00:00 2001 From: Wesley Luyten Date: Wed, 25 Oct 2023 09:50:22 -0500 Subject: [PATCH] chore: use Node matrix with 16.x, 18.x, 20.x (#1688) Co-authored-by: Jesse Portnoy --- .github/workflows/ci.yml | 27 ++++++++++++--------------- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d132b5d5..3c13fabd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,13 +3,12 @@ name: Node.js CI on: [push, pull_request] jobs: - build: + lint: runs-on: ubuntu-latest strategy: matrix: - # node-version: [16.x, 18.x, 20.x] - node-version: [16.x] + node-version: [18.x] steps: - uses: actions/checkout@v3 @@ -19,18 +18,14 @@ jobs: node-version: ${{ matrix.node-version }} cache: npm - run: npm ci - - run: npm run build:lib - - run: npm run build:demo - - run: npm run build:dist - - run: npm run build:standalone + - run: npm run lint - lint: + test: runs-on: ubuntu-latest strategy: matrix: - # node-version: [16.x, 18.x, 20.x] - node-version: [16.x] + node-version: [18.x] steps: - uses: actions/checkout@v3 @@ -40,15 +35,14 @@ jobs: node-version: ${{ matrix.node-version }} cache: npm - run: npm ci - - run: npm run lint + - run: npm run test:coverage - test: + build: runs-on: ubuntu-latest strategy: matrix: - # node-version: [16.x, 18.x, 20.x] - node-version: [16.x] + node-version: [16.x, 18.x, 20.x] steps: - uses: actions/checkout@v3 @@ -58,4 +52,7 @@ jobs: node-version: ${{ matrix.node-version }} cache: npm - run: npm ci - - run: npm run test:coverage + - run: npm run build:lib + - run: npm run build:demo + - run: npm run build:dist + - run: npm run build:standalone