From eef8d2130ce86bfb33c53fdd89e4ee808e0d5963 Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Thu, 28 Nov 2024 04:28:16 -0800 Subject: [PATCH] [actions] use ljharb/actions/node/matrix (#3) --- .github/workflows/ci.yml | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3a706d7..110d025 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,14 +25,24 @@ jobs: - run: npm run format - run: npm run test:types + matrix: + runs-on: ubuntu-22.04 + outputs: + latest: ${{ steps.set-matrix.outputs.requireds }} + steps: + - uses: ljharb/actions/node/matrix@6f6460d952d0fa896c91a56c2e450cb8c9fd1a21 # main + id: set-matrix + with: + versionsAsRoot: true + type: majors + preset: '>= 22' # glob is not backported below 22.x + tests: + needs: [matrix] strategy: fail-fast: false matrix: - node: - - version: 23.x - - version: 22.x - # glob is not backported below 22.x + node: ${{ fromJson(needs.matrix.outputs.latest) }} os: - macos-latest - ubuntu-latest