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

Commit 937b1ce

Browse files
authored
ci: add diff check action (#37)
* ci: add diff check action * fix: keep same naming convention
1 parent 25c3902 commit 937b1ce

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/diff-check.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: "diff-check"
2+
3+
on: [ push,pull_request ]
4+
5+
jobs:
6+
diff-check:
7+
name: diff-check
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: Build
20+
run: make build
21+
22+
- name: Git Diff
23+
run: if [ "$(git diff | wc -l)" -gt 0 ]; then exit 1; fi

0 commit comments

Comments
 (0)