File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33 pull_request :
44 push :
55 branches :
6- - master
6+ - main
77jobs :
8+ setup :
9+ name : Setup
10+ runs-on : ubuntu-latest
11+ outputs :
12+ nodes : ${{ steps.nodes.outputs.nodes }}
13+ steps :
14+ - uses : actions/checkout@v4
15+ - uses : actions/setup-node@v3
16+ - name : Setup Node Version Matrix
17+ id : nodes
18+ run : |
19+ NODES=$(npx -y @pkgjs/nv ls supported | jq '. | .version' | paste -sd "," -)
20+ echo "nodes=[${NODES}]" >> $GITHUB_OUTPUT
21+
822 test :
923 runs-on : ubuntu-latest
24+ needs : setup
1025 strategy :
1126 matrix :
12- node-version : [10.x, 12.x, 14.x, 15.x]
27+ node-version : ${{ fromJson(needs.setup.outputs.nodes) }}
1328 steps :
14- - uses : actions/checkout@v1
29+ - uses : actions/checkout@v4
1530 - name : Use Node.js ${{ matrix.node-version }}
16- uses : actions/setup-node@v1
31+ uses : actions/setup-node@v3
1732 with :
1833 node-version : ${{ matrix.node-version }}
1934 - name : npm install and test
You can’t perform that action at this time.
0 commit comments