Skip to content

Commit e330a9e

Browse files
authored
switch to Node 20 as default runner, test also 18 and 20 on CI (#71)
1 parent 548bb8c commit e330a9e

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

.github/workflows/tests.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,17 @@ on: [pull_request]
44
jobs:
55
test:
66
runs-on: ubuntu-latest
7+
strategy:
8+
matrix:
9+
node: [16, 18, 20]
10+
name: Testing on Node ${{ matrix.node }}
711
steps:
812
- name: '🚚 Checkout'
913
uses: actions/checkout@v3
1014
- name: '🔧 Setup Node'
1115
uses: actions/setup-node@v3
1216
with:
13-
node-version: '16'
17+
node-version: ${{ matrix.node }}
1418
- name: '📦️ Install dependencies'
1519
run: yarn
1620
- name: '🧪 Run Unit tests'
@@ -29,4 +33,4 @@ jobs:
2933
uses: ./
3034
with:
3135
path: tests/ci/berry-v3/yarn.lock
32-
token: ${{ secrets.GITHUB_TOKEN }}
36+
token: ${{ secrets.GITHUB_TOKEN }}

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,5 @@ inputs:
2828
required: false
2929
default: 'false'
3030
runs:
31-
using: 'node16'
31+
using: 'node20'
3232
main: 'dist/index.js'

0 commit comments

Comments
 (0)