Skip to content

Commit

Permalink
Better output for "prettier" test (#2014)
Browse files Browse the repository at this point in the history
* Better prettier output

Signed-off-by: rdwebdesign <github@rdwebdesign.com.br>

* Adding a new test, to preserve the current behavior.

Signed-off-by: rdwebdesign <github@rdwebdesign.com.br>

* Fix command

Signed-off-by: rdwebdesign <github@rdwebdesign.com.br>
  • Loading branch information
rdwebdesign committed Dec 22, 2021
1 parent 42a7bbe commit d037066
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Expand Up @@ -31,4 +31,4 @@ jobs:
run: npm ci

- name: Run tests
run: npm test
run: npm run testpr
3 changes: 2 additions & 1 deletion package.json
Expand Up @@ -20,7 +20,8 @@
"prettier:fix": "prettier --write \"style/*.css\" \"style/themes/*.css\" \"scripts/pi-hole/**/*.js\"",
"xo": "xo",
"xo:fix": "npm run xo -- --fix",
"test": "npm run prettier:check && npm run xo"
"test": "npm run prettier:check && npm run xo",
"testpr": "npm run prettier:fix && git diff --ws-error-highlight=all --color=always --exit-code && npm run xo"
},
"devDependencies": {
"autoprefixer": "^10.4.0",
Expand Down

0 comments on commit d037066

Please sign in to comment.