Skip to content

Commit 63633b2

Browse files
authored
fix(ci): color git diff output
in case prettier finds an error, the git diff is hard to recognize the actual difference so one knows what to fix. I added the --color switch so the changes are easier recognizable in the actions log
1 parent 6e2fa0f commit 63633b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
yarn add -D github:fomantic/prettier#2.8.1-patched
2020
&& npx prettier --loglevel warn '!dist' '!test/coverage' '!src/semantic.less' '**/*.{css,less,overrides,variables}' --write
2121
&& git restore package.json yarn.lock
22-
&& git add . -N && git diff --exit-code
22+
&& git add . -N && git diff --color --exit-code
2323
test:
2424
name: Test build process on node ${{ matrix.node-version }}
2525
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)