From def1d2c89fed078aff495f6dd2aca4b34f3f2a20 Mon Sep 17 00:00:00 2001 From: Patrice Chalin Date: Fri, 2 Feb 2024 06:23:48 -0500 Subject: [PATCH] [CI] test:all should also check/fix format (#1811) --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index afdfe322e..3184ff764 100644 --- a/package.json +++ b/package.json @@ -8,6 +8,7 @@ "_cd:docs": "cd userguide &&", "_check:format": "npx prettier --check .??* *.md", "_cp:bs-rfs": "npx cpy 'node_modules/bootstrap/scss/vendor/*' assets/_vendor/bootstrap/scss/", + "_diff:check": "git diff --name-only --exit-code", "_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", @@ -29,7 +30,7 @@ "preserve": "npm run _prebuild", "pretest": "npm run _prebuild", "serve": "npm run cd:docs serve", - "test:all": "npm run _test:docs && npm run check", + "test:all": "npm run _test:docs && npm run check && npm run fix:format && npm run _diff: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"