@@ -3,7 +3,7 @@ name: Test
33on :
44 push :
55 branches :
6- - main
6+ - main
77 pull_request :
88
99jobs :
@@ -13,30 +13,41 @@ jobs:
1313 outputs :
1414 nodes : ${{ steps.nodes.outputs.nodes }}
1515 steps :
16- - uses : actions/checkout@v4
17- - uses : actions/setup-node@v3
16+ - uses : actions/checkout@v6
17+ - uses : actions/setup-node@v6
1818 - name : Setup Node Version Matrix
1919 id : nodes
2020 run : |
2121 NODES=$(npx -y @pkgjs/nv ls supported | jq '. | .version' | paste -sd "," -)
2222 echo "nodes=[${NODES}]" >> $GITHUB_OUTPUT
2323
24+ lint :
25+ runs-on : ubuntu-latest
26+ needs : setup
27+ steps :
28+ - uses : actions/checkout@v6
29+ - name : Use Node.js 24.x
30+ uses : actions/setup-node@v6
31+ with :
32+ node-version : 24.x
33+ - run : npm i
34+ - run : npm run lint
35+
2436 test :
25- # uses: pkgjs/action/.github/workflows/node-test.yaml@v0
2637 runs-on : ubuntu-latest
2738 needs : setup
2839 strategy :
2940 matrix :
3041 node-version : ${{ fromJson(needs.setup.outputs.nodes) }}
3142 steps :
32- - uses : actions/checkout@v4
33- - name : Setup git user
34- run : |
35- git config --global user.name "$(git --no-pager log --format=format:'%an' -n 1)"
36- git config --global user.email "$(git --no-pager log --format=format:'%ae' -n 1)"
37- - name : Use Node.js ${{ matrix.node-version }}
38- uses : actions/setup-node@v3
39- with :
40- node-version : ${{ matrix.node-version }}
41- - name : npm install and test
42- run : npm it
43+ - uses : actions/checkout@v6
44+ - name : Setup git user
45+ run : |
46+ git config --global user.name "$(git --no-pager log --format=format:'%an' -n 1)"
47+ git config --global user.email "$(git --no-pager log --format=format:'%ae' -n 1)"
48+ - name : Use Node.js ${{ matrix.node-version }}
49+ uses : actions/setup-node@v6
50+ with :
51+ node-version : ${{ matrix.node-version }}
52+ - name : npm install and test
53+ run : npm it
0 commit comments