Skip to content

Commit 0416722

Browse files
committed
Matrix CI
1 parent 5795505 commit 0416722

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

.github/actions/setup/action.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,18 @@
11
name: setup
22

3+
inputs:
4+
node-version:
5+
description: "Node.js version to use"
6+
required: false
7+
default: "22.10.x"
8+
39
runs:
410
using: composite
511
steps:
612
- name: Setup node
713
uses: actions/setup-node@v4
814
with:
9-
node-version: "22.10.x"
15+
node-version: ${{ inputs.node-version }}
1016
cache: npm
1117
registry-url: 'https://registry.npmjs.org/'
1218

.github/workflows/tests.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,17 @@ jobs:
1818
test:
1919
runs-on: ubuntu-latest
2020
if: ${{ github.event_name == 'workflow_dispatch' || !contains(github.event.head_commit.message, 'chore(release):') }}
21+
strategy:
22+
matrix:
23+
node-version: [22.17, 24]
2124
steps:
2225
- name: Checkout the repository
2326
uses: actions/checkout@v5
2427

2528
- name: Setup
2629
uses: ./.github/actions/setup
30+
with:
31+
node-version: ${{ matrix.node-version }}
2732

2833
- name: Run linter
2934
run: npm run eslint-check

0 commit comments

Comments
 (0)