From ffedcd25464af3e3fdc5533abc9c307e5347c2af Mon Sep 17 00:00:00 2001 From: Frankie Roberto Date: Mon, 13 Nov 2023 12:01:48 +0000 Subject: [PATCH] Run tests on all supported node versions (#209) --- .github/workflows/test.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0e247ce5..9ffb1743 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -12,18 +12,18 @@ jobs: test: name: Run tests runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + node: ['16', '18', '20'] steps: - name: Checkout code uses: actions/checkout@v4 - - name: Read .nvmrc - id: nvm - run: echo "##[set-output name=NVMRC;]$(cat .nvmrc)" - - name: Setup Node.js uses: actions/setup-node@v4 with: - node-version: '${{ steps.nvm.outputs.NVMRC }}' + node-version: ${{ matrix.node }} cache: 'npm' - name: Install dependencies