Switch npm install to npm ci
npm ci relies completely on package-lock.json for version resolution,
and is faster as a result.
@@ -37,7 +37,7 @@ jobs:
name: Lint JS
working_directory: ~/project/implementation
command: |
- npm install
+ npm ci
npm run js:lint
lint_solidity:
executor: docker-node
@@ -50,7 +50,7 @@ jobs:
working_directory: ~/project/implementation
command: |
set -ex
- npm install
+ npm ci
npm run sol:lint
unit_test_contracts:
executor: docker-node
@@ -67,7 +67,7 @@ jobs:
- run:
name: Run NPM tests
working_directory: ~/project/implementation
- command: npm install && npm run test
+ command: npm ci && npm run test
generate_pngs:
docker:
- image: keepnetwork/texlive:15
@@ -109,7 +109,7 @@ jobs:
- run:
name: Generate solidity docs
command: |
- cd implementation && npm install
+ cd implementation && npm ci
node_modules/.bin/truffle compile
cd docs
