Skip to content

Commit e1ca52b

Browse files
committed
This way to check formatting also shows the diff
1 parent d220c7c commit e1ca52b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ steps:
4444
- uses: actions/checkout@v2
4545
- run: shards install
4646
- run: crystal spec
47-
- run: crystal tool format --check
47+
- run: crystal tool format && git diff --exit-code
4848
if: matrix.crystal == 'latest'
4949
```
5050

docs/configurator.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ jobs:
115115
{%- endif %}
116116
{%- if tool_format %}
117117
- name: Check formatting
118-
run: crystal tool format --check
118+
run: crystal tool format && git diff --exit-code
119119
{%- set latest = "== 'latest'" if not unroll else "!= 'nightly'" if not crystal_ver else "== null" -%}
120120
{%- if os_win and (crystal_nightly or crystal_ver) %}
121121
if: matrix.crystal {{ latest }} && matrix.os == 'ubuntu-latest'

0 commit comments

Comments
 (0)