Skip to content

Commit 855d8bc

Browse files
committed
THRIFT-5969: Enforce gofmt -s in CI
1 parent 1668e19 commit 855d8bc

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,13 @@ jobs:
247247
with:
248248
go-version: ${{ matrix.go }}
249249

250+
- name: Check gofmt
251+
# Args:
252+
# -s: Simplify code
253+
# -d: Display changes, and exit non-zero when changes present
254+
# -e: Report all errors instead of only the first 10
255+
run: gofmt -s -d -e $(git ls-files | grep "\.go$")
256+
250257
- name: Install dependencies
251258
run: |
252259
sudo apt-get update -yq

0 commit comments

Comments
 (0)