Skip to content

Commit

Permalink
[CI] Replace cp command by fs.copyFile + add test-all script
Browse files Browse the repository at this point in the history
  • Loading branch information
chalin committed Feb 1, 2024
1 parent 340cbf7 commit 207b7a4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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"
},
Expand Down

0 comments on commit 207b7a4

Please sign in to comment.