From 7ca3d97ce9a2df46fa3e3b2b563f179d57ad8428 Mon Sep 17 00:00:00 2001 From: Ade Attwood Date: Wed, 16 Aug 2023 19:52:25 +0100 Subject: [PATCH] ci: run tests on multiple node versions --- .github/workflows/ci.yml | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9544931..da49e64 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,8 +5,8 @@ on: pull_request: { branches: ["0.x"] } jobs: - test: - name: Test + lint: + name: Lint runs-on: ubuntu-latest steps: - name: Checkout @@ -27,5 +27,25 @@ jobs: - name: Type Check run: yarn build + test: + name: Test Node ${{ matrix.node-versions }} + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + node-version: [16, 18, 20] + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Set up Node + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + cache: yarn + + - name: Install dependencies + run: yarn install + - name: Test run: yarn test --coverage