From 3825ac04889ec0fc2564cc82c8b94b51a521ef85 Mon Sep 17 00:00:00 2001 From: Mircea Nistor Date: Fri, 14 Oct 2022 16:28:52 +0200 Subject: [PATCH] fix(ci): run tests on a matrix of node versions --- .github/workflows/release.yml | 2 +- .github/workflows/test.yml | 10 +++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index dd8931bc..731dc28d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -7,7 +7,7 @@ on: - 'alpha' jobs: build-test-publish: - runs-on: ubuntu-18.04 + runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v3 with: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 663b8fa6..c3952da9 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -2,15 +2,19 @@ name: Build and Test NODE on: [pull_request, workflow_dispatch, push] jobs: build-test: - runs-on: ubuntu-18.04 + runs-on: ubuntu-22.04 + strategy: + matrix: + version: [ 14, 16, 18 ] steps: - uses: actions/checkout@v3 with: fetch-depth: 0 - - name: Use Node.js + + - name: "Setup node with cache" uses: actions/setup-node@v3 with: - node-version: 14 + node-version: ${{ matrix.version }} cache: 'yarn' - run: yarn install --frozen-lockfile