Skip to content

Commit

Permalink
chore: use 'npm ci' instead of 'npm install' for Node.js tests (#251)
Browse files Browse the repository at this point in the history
This will ensure that package-lock.json is not updated with patch releases
unintentionally - that should be done with intent.

Signed-off-by: Lance Ball <lball@redhat.com>
  • Loading branch information
lance authored Dec 11, 2020
1 parent 61ea8d4 commit ed9a405
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ test-binary:
go test -race -cover -coverprofile=coverage.out ./...

test-node:
cd templates/node/events && npm install && npm test && rm -rf node_modules
cd templates/node/http && npm install && npm test && rm -rf node_modules
cd templates/node/events && npm ci && npm test && rm -rf node_modules
cd templates/node/http && npm ci && npm test && rm -rf node_modules

test-quarkus:
cd templates/quarkus/events && mvn test
Expand Down

0 comments on commit ed9a405

Please sign in to comment.