From 20fa17a16a61e7ee1f0fb1b8820b2a8827ecdef1 Mon Sep 17 00:00:00 2001 From: Patrice Chalin Date: Fri, 2 Feb 2024 05:34:18 -0500 Subject: [PATCH] More NPM script tweaks --- .github/workflows/test.yaml | 5 ++--- package.json | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 589f1a51f9..7d09b7e0cc 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -1,5 +1,4 @@ -# Runs `npm test` to build Docsy & the User Guide and run all repo checks across -# OSs. +# Build Docsy & the User Guide and run all repo checks across OSs. name: test @@ -25,4 +24,4 @@ jobs: cache: npm cache-dependency-path: package.json - run: npm install --omit=optional - - run: npm test + - run: npm run test:all diff --git a/package.json b/package.json index dda522c508..bb9008e7cd 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,6 @@ "_mkdir:hugo-mod": "npx mkdirp ../github.com/FortAwesome/Font-Awesome ../github.com/twbs/bootstrap", "_prebuild": "npm run _cp:bs-rfs", "_test:docs": "npm run cd:docs test", - "_test": "npm run _test:docs && npm run check", "build:preview": "npm run cd:docs build:preview", "build:production": "npm run cd:docs build:production", "build": "npm run cd:docs build", @@ -24,7 +23,6 @@ "docs-install": "npm run _cd:docs -- npm install", "fix:format": "npm run _check:format -- --write", "get:hugo-modules": "node tools/getHugoModules/index.mjs", - "get:submodule": "set -x && git submodule update --init ${DEPTH:- --depth 1}", "postinstall": "npm run _mkdir:hugo-mod", "prebuild:preview": "npm run _prebuild", "prebuild:production": "npm run _prebuild", @@ -32,7 +30,8 @@ "preserve": "npm run _prebuild", "pretest": "npm run _prebuild", "serve": "npm run cd:docs serve", - "test": "npm run _test$DOCSY_TEST", + "test:all": "npm run _test:docs && npm run check", + "test": "npm run _test:docs", "update:pkg:dep": "npm install --save-exact @fortawesome/fontawesome-free@latest bootstrap@latest", "update:pkg:hugo": "npm install --save-exact -D hugo-extended@latest" },