Skip to content

Commit 3825ac0

Browse files
committed
fix(ci): run tests on a matrix of node versions
1 parent e66d054 commit 3825ac0

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
- 'alpha'
88
jobs:
99
build-test-publish:
10-
runs-on: ubuntu-18.04
10+
runs-on: ubuntu-22.04
1111
steps:
1212
- uses: actions/checkout@v3
1313
with:

.github/workflows/test.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,19 @@ name: Build and Test NODE
22
on: [pull_request, workflow_dispatch, push]
33
jobs:
44
build-test:
5-
runs-on: ubuntu-18.04
5+
runs-on: ubuntu-22.04
6+
strategy:
7+
matrix:
8+
version: [ 14, 16, 18 ]
69
steps:
710
- uses: actions/checkout@v3
811
with:
912
fetch-depth: 0
10-
- name: Use Node.js
13+
14+
- name: "Setup node with cache"
1115
uses: actions/setup-node@v3
1216
with:
13-
node-version: 14
17+
node-version: ${{ matrix.version }}
1418
cache: 'yarn'
1519

1620
- run: yarn install --frozen-lockfile

0 commit comments

Comments
 (0)