@@ -20,35 +20,28 @@ jobs:
2020 strategy :
2121 matrix :
2222 os : [ubuntu-latest]
23- node-version : [10, 12, 14, 16]
23+ node-version : [10, 12, 14, 16, 17 ]
2424 include :
2525 - os : macos-latest
26- node_version : 14
26+ node_version : 16
2727 - os : windows-latest
28- node_version : 14
28+ node_version : 16
2929 fail-fast : false
3030 steps :
31- - uses : actions/checkout@v2
31+ - uses : actions/checkout@v3
3232 - name : Use Node.js ${{ matrix.node-version }}
33- uses : actions/setup-node@v1
33+ uses : actions/setup-node@v3
3434 with :
3535 node-version : ${{ matrix.node-version }}
36- - name : Update NPM
37- if : matrix.os != 'macos-latest'
38- run : npm install --global npm
39- - name : Update NPM (macOS)
40- if : matrix.os == 'macos-latest'
41- run : npm install --global --force npm
4236 - name : Bootstrap project
4337 run : npm ci --ignore-scripts
4438 - name : Run tests
45- run : npm test --ignore-scripts
39+ run : npm test
4640 - name : Publish coverage report to Coveralls
4741 uses : coverallsapp/github-action@master
4842 with :
4943 github-token : ${{ secrets.GITHUB_TOKEN }}
5044 flag-name : run-${{ matrix.os }}-node@${{ matrix.node-version }}
51- path-to-lcov : ${{ github.workspace }}/coverage/lcov.info
5245 parallel : true
5346
5447 posttest :
@@ -66,11 +59,11 @@ jobs:
6659 name : Code Lint
6760 runs-on : ubuntu-latest
6861 steps :
69- - uses : actions/checkout@v2
70- - name : Use Node.js 14
71- uses : actions/setup-node@v2
62+ - uses : actions/checkout@v3
63+ - name : Use Node.js 16
64+ uses : actions/setup-node@v3
7265 with :
73- node-version : 14
66+ node-version : 16
7467 - name : Bootstrap project
7568 run : npm ci --ignore-scripts
7669 - name : Verify code linting
@@ -80,17 +73,25 @@ jobs:
8073 name : Commit Lint
8174 runs-on : ubuntu-latest
8275 steps :
83- - uses : actions/checkout@v2
76+ - uses : actions/checkout@v3
8477 with :
8578 fetch-depth : 0
86- - name : Use Node.js 14
87- uses : actions/setup-node@v2
79+ - name : Use Node.js 16
80+ uses : actions/setup-node@v3
8881 with :
89- node-version : 14
82+ node-version : 16
9083 - name : Bootstrap project
9184 run : npm ci --ignore-scripts
9285 - name : Verify commit linting
93- run : npx --no-install commitlint --from origin/master --to HEAD --verbose
86+ run : |
87+ npx \
88+ --no-install \
89+ --package=@commitlint/cli \
90+ -- \
91+ commitlint \
92+ --from=origin/master \
93+ --to=HEAD \
94+ --verbose
9495
9596 codeql :
9697 name : CodeQL
@@ -100,7 +101,7 @@ jobs:
100101 security-events : write
101102 steps :
102103 - name : Checkout repository
103- uses : actions/checkout@v2
104+ uses : actions/checkout@v3
104105
105106 - name : Initialize CodeQL
106107 uses : github/codeql-action/init@v1
0 commit comments