Skip to content

Commit 207b7a4

Browse files
committed
[CI] Replace cp command by fs.copyFile + add test-all script
1 parent 340cbf7 commit 207b7a4

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.github/workflows/test.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ jobs:
2525
cache: npm
2626
cache-dependency-path: package.json
2727
- run: npm install --omit=optional
28-
- run: npm test
28+
- run: npm run test-all

package.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"scripts": {
88
"_cd:docs": "cd userguide &&",
99
"_check:format": "npx prettier --check .??* *.md",
10-
"_cp:bs-rfs": "cp -R node_modules/bootstrap/scss/vendor/* assets/_vendor/bootstrap/scss/",
10+
"_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 });\"",
1111
"_mkdir:hugo-mod": "npx mkdirp ../github.com/FortAwesome/Font-Awesome ../github.com/twbs/bootstrap",
1212
"_prebuild": "npm run _cp:bs-rfs",
1313
"build:preview": "npm run cd:docs build:preview",
@@ -30,7 +30,8 @@
3030
"preserve": "npm run _prebuild",
3131
"pretest": "npm run _prebuild",
3232
"serve": "npm run cd:docs serve",
33-
"test": "npm run cd:docs test && npm run check",
33+
"test": "npm run cd:docs test",
34+
"test-all": "npm test && npm run check",
3435
"update:pkg:dep": "npm install --save-exact @fortawesome/fontawesome-free@latest bootstrap@latest",
3536
"update:pkg:hugo": "npm install --save-exact -D hugo-extended@latest"
3637
},

0 commit comments

Comments
 (0)