Skip to content

Commit

Permalink
[Tests] use a matrix on the nvm install-latest-npm tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Oct 5, 2021
1 parent a781acb commit a0d5c27
Showing 1 changed file with 25 additions and 27 deletions.
52 changes: 25 additions & 27 deletions .github/workflows/latest-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,20 @@ name: 'Tests: `nvm install-latest-npm`'
on: [pull_request, push]

jobs:
matrix:
runs-on: ubuntu-latest
outputs:
latest: ${{ steps.set-matrix.outputs.requireds }}
steps:
- uses: ljharb/actions/node/matrix@main
id: set-matrix
with:
versionsAsRoot: true
type: majors
preset: '>=1'

nodes:
needs: [matrix]
permissions:
contents: read
name: 'nvm install-latest-npm'
Expand All @@ -12,33 +25,18 @@ jobs:
strategy:
fail-fast: false
matrix:
node-version:
- "16"
- "15"
- "14"
- "13"
- "12"
- "11"
- "10"
- "9"
- "9.2"
- "9.1"
- "9.0"
- "8"
- "7"
- "6"
- "6.1"
- "5"
- "5.9"
- "4"
- "4.6"
- "4.5"
- "4.4"
- "3"
- "2"
- "1"
- "0.12"
- "0.10"
node-version: ${{ fromJson(needs.matrix.outputs.latest) }}
include:
- node-version: "9.2"
- node-version: "9.1"
- node-version: "9.0"
- node-version: "6.1"
- node-version: "5.9"
- node-version: "4.6"
- node-version: "4.5"
- node-version: "4.4"
- node-version: "0.12"
- node-version: "0.10"

steps:
- uses: actions/checkout@v2
Expand Down

0 comments on commit a0d5c27

Please sign in to comment.