Skip to content

Commit

Permalink
fix(ci): color git diff output
Browse files Browse the repository at this point in the history
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
  • Loading branch information
lubber-de authored Dec 22, 2022
1 parent 6e2fa0f commit 63633b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
yarn add -D github:fomantic/prettier#2.8.1-patched
&& npx prettier --loglevel warn '!dist' '!test/coverage' '!src/semantic.less' '**/*.{css,less,overrides,variables}' --write
&& git restore package.json yarn.lock
&& git add . -N && git diff --exit-code
&& git add . -N && git diff --color --exit-code
test:
name: Test build process on node ${{ matrix.node-version }}
runs-on: ubuntu-latest
Expand Down

0 comments on commit 63633b2

Please sign in to comment.