Skip to content
This repository was archived by the owner on Oct 18, 2021. It is now read-only.

Commit 79bcb93

Browse files
authored
ci: add gofmt action (#33)
1 parent 1ee2d41 commit 79bcb93

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/gofmt.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: "gofmt"
2+
3+
on: [ push,pull_request ]
4+
5+
jobs:
6+
gofmt:
7+
name: gofmt
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- name: Set up Go 1.x
12+
uses: actions/setup-go@v2
13+
with:
14+
go-version: "1.15"
15+
16+
- name: Checkout repository
17+
uses: actions/checkout@v2
18+
19+
- name: Format
20+
run: if [ "$(gofmt -l . | wc -l)" -gt 0 ]; then exit 1; fi

0 commit comments

Comments
 (0)