Skip to content

Commit

Permalink
ci: move check-node-version to separate step
Browse files Browse the repository at this point in the history
  • Loading branch information
MrMarCode committed May 20, 2024
1 parent 1c5cbdd commit 4a80d29
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ jobs:
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
- run: npm i -g [email protected]
- run: npm ci
- run: npm run check-node-version
- run: npm run standards
test:
needs: [ build ]
Expand All @@ -31,7 +31,6 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: npm i -g [email protected]
- run: npm ci # Reinstall the dependencies to ensure they install with the current version of node
- run: npm test
- name: Coveralls
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"main": "src/index.js",
"scripts": {
"commitlint": "commitlint --from c798aab",
"test": "check-node-version --npm 10.5.0 --print && nyc mocha -- 'tests/**/*.test.js'",
"check-node-version": "check-node-version --npm 10.5.0",
"test": "nyc mocha -- 'tests/**/*.test.js'",
"eslint": "eslint '{,!(node_modules|dist)/**/}*.js'",
"markdownlint": "markdownlint -c .markdownlint.json -i CHANGELOG.md '{,!(node_modules)/**/}*.md'",
"standards": "npm run markdownlint && npm run eslint",
Expand Down

0 comments on commit 4a80d29

Please sign in to comment.