diff options
author | Ruy Adorno <ruyadorno@hotmail.com> | 2021-03-25 07:45:30 +0300 |
---|---|---|
committer | Ruy Adorno <ruyadorno@hotmail.com> | 2021-03-26 00:32:24 +0300 |
commit | 97b41528739460b2e9e72e09000aded412418cb2 (patch) | |
tree | 98236ceca0ff02dc8528f674d09d319a7cc871de /Makefile | |
parent | 59cf37962a2286e0f7d3bd37fa9c8bc3bac94218 (diff) |
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
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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 &&\ |