From 09b6ab001aafee31a81fb5de79ef0d919c76b440 Mon Sep 17 00:00:00 2001 From: Patrice Chalin Date: Thu, 1 Feb 2024 08:24:39 -0500 Subject: [PATCH] [CI] Replace cp command by fs.copyFile + add test-all script --- .github/workflows/test.yaml | 2 +- package.json | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 589f1a51f9..53dcac8d39 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -25,4 +25,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 8f5de1b1f6..24310eb823 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "scripts": { "_cd:docs": "cd userguide &&", "_check:format": "npx prettier --check .??* *.md", - "_cp:bs-rfs": "cp -R node_modules/bootstrap/scss/vendor/* assets/_vendor/bootstrap/scss/", + "_cp:bs-rfs": "node -e \"require('fs').copyFile('node_modules/bootstrap/scss/vendor/_rfs.scss', 'assets/_vendor/bootstrap/scss/_rfs.scss', e => { if (e) throw e });\"", "_mkdir:hugo-mod": "npx mkdirp ../github.com/FortAwesome/Font-Awesome ../github.com/twbs/bootstrap", "_prebuild": "npm run _cp:bs-rfs", "build:preview": "npm run cd:docs build:preview", @@ -30,7 +30,8 @@ "preserve": "npm run _prebuild", "pretest": "npm run _prebuild", "serve": "npm run cd:docs serve", - "test": "npm run cd:docs test && npm run check", + "test": "npm run cd:docs test", + "test-all": "npm test && npm run check", "update:pkg:dep": "npm install --save-exact @fortawesome/fontawesome-free@latest bootstrap@latest", "update:pkg:hugo": "npm install --save-exact -D hugo-extended@latest" },