Skip to content

Commit c3ec491

Browse files
authored
Enforce Go formatting (#25)
1 parent 0a8a246 commit c3ec491

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/format-checker.yml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Format checker
2+
on: push
3+
jobs:
4+
gofmt:
5+
name: gofmt
6+
runs-on: ubuntu-latest
7+
steps:
8+
- name: Check out
9+
uses: actions/checkout@v3
10+
11+
- name: Run gofmt
12+
run: gofmt -s -w .
13+
14+
- name: Ensure gofmt matches
15+
run: git diff --color --exit-code

0 commit comments

Comments
 (0)