We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
gofmt -s
1 parent 1668e19 commit 855d8bcCopy full SHA for 855d8bc
1 file changed
.github/workflows/build.yml
@@ -247,6 +247,13 @@ jobs:
247
with:
248
go-version: ${{ matrix.go }}
249
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
+
257
- name: Install dependencies
258
run: |
259
sudo apt-get update -yq
0 commit comments