From 0be463d512d03bf20dcae070c83daa703a33e1ad Mon Sep 17 00:00:00 2001 From: Alex Lanz Date: Mon, 18 Mar 2024 08:33:47 +0100 Subject: [PATCH] test code with all supported Node versions --- .github/workflows/main.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1449db44b..c566c06e4 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -2,18 +2,18 @@ name: Test Package on: push -env: - NODE_VERSION: 20 - jobs: test: runs-on: ubuntu-22.04 timeout-minutes: 15 + strategy: + matrix: + node_version: [16, 18, 20] steps: - uses: actions/checkout@v4 - uses: aboutbits/github-actions-node/setup-and-install@v2 with: - node-version: ${{ env.NODE_VERSION }} + node-version: ${{ matrix.node_version }} - run: npm run lint - run: npm run typecheck - run: npm run test