diff --git a/.github/actions/setup/action.yml b/.github/actions/setup/action.yml index cc35c7d2..d1423213 100644 --- a/.github/actions/setup/action.yml +++ b/.github/actions/setup/action.yml @@ -1,12 +1,18 @@ name: setup +inputs: + node-version: + description: "Node.js version to use" + required: false + default: "22.10.x" + runs: using: composite steps: - name: Setup node uses: actions/setup-node@v4 with: - node-version: "22.10.x" + node-version: ${{ inputs.node-version }} cache: npm registry-url: 'https://registry.npmjs.org/' diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index f451e0ac..bc82912a 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -18,12 +18,17 @@ jobs: test: runs-on: ubuntu-latest if: ${{ github.event_name == 'workflow_dispatch' || !contains(github.event.head_commit.message, 'chore(release):') }} + strategy: + matrix: + node-version: [22.17, 24] steps: - name: Checkout the repository uses: actions/checkout@v5 - name: Setup uses: ./.github/actions/setup + with: + node-version: ${{ matrix.node-version }} - name: Run linter run: npm run eslint-check