Skip to content

Commit

Permalink
[actions] use ljharb/actions/node/matrix (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb authored Nov 28, 2024
1 parent d57d2dd commit eef8d21
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit eef8d21

Please sign in to comment.