From 96b220681b7174553628d46b3772eb2c3bd3228f Mon Sep 17 00:00:00 2001 From: Alex Lanz Date: Mon, 18 Mar 2024 09:31: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 9759c0d..de16870 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -2,16 +2,16 @@ 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 checks