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