From 97b41528739460b2e9e72e09000aded412418cb2 Mon Sep 17 00:00:00 2001 From: Ruy Adorno Date: Thu, 25 Mar 2021 00:45:30 -0400 Subject: add smoke tests Lightweight smoke test suite that runs common commands so that we can also have a holistic check during CI. PR-URL: https://github.com/npm/cli/pull/2959 Credit: @ruyadorno Close: #2959 Reviewed-by: @nlf --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 656f64f79..b8add91b6 100644 --- a/Makefile +++ b/Makefile @@ -76,6 +76,9 @@ docs/content/using-npm/config.md: scripts/config-doc.js lib/utils/config/*.js test: dev-deps node bin/npm-cli.js test +smoke-tests: dev-deps + node bin/npm-cli.js run smoke-tests + ls-ok: node . ls --production >/dev/null @@ -93,7 +96,7 @@ prune: @[[ "$(shell git status -s)" != "" ]] && echo "ERR: found unpruned files" && exit 1 || echo "git status is clean" -publish: gitclean ls-ok link test docs prune +publish: gitclean ls-ok link test smoke-tests docs prune @git push origin :v$(shell node bin/npm-cli.js --no-timing -v) 2>&1 || true git push origin $(BRANCH) &&\ git push origin --tags &&\ -- cgit v1.2.3