Skip to content

Commit a1ca204

Browse files
committed
ci: move check-node-version to separate step
1 parent 6ab1ee0 commit a1ca204

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ jobs:
1414
uses: actions/setup-node@v4
1515
with:
1616
node-version-file: '.nvmrc'
17-
- run: npm i -g npm@10.5.0
1817
- run: npm ci
18+
- run: npm run check-node-version
1919
- run: npm run standards
2020
test:
2121
needs: [ build ]
@@ -31,7 +31,6 @@ jobs:
3131
uses: actions/setup-node@v4
3232
with:
3333
node-version: ${{ matrix.node-version }}
34-
- run: npm i -g npm@10.5.0
3534
- run: npm ci # Reinstall the dependencies to ensure they install with the current version of node
3635
- run: npm test
3736
- name: Coveralls

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"description": "Plugin for the SLS 1.x branch to provide support for Lambda@Edge (not currently supported by CloudFormation",
55
"main": "src/index.js",
66
"scripts": {
7-
"test": "check-node-version --npm 10.5.0 && nyc mocha -- 'src/tests/**/*.test.js'",
7+
"test": "nyc mocha -- 'src/tests/**/*.test.js'",
8+
"check-node-version": "check-node-version --npm 10.5.0",
89
"commitlint": "commitlint --from 4fbfbef",
910
"eslint": "eslint .",
1011
"markdownlint": "markdownlint -c .markdownlint.json '{,!(node_modules)/**/}*.md'",

0 commit comments

Comments
 (0)