Skip to content

Commit 25bc2a2

Browse files
committed
github-ci: add workflow with checking format
1 parent 31ebde8 commit 25bc2a2

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/check.yaml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Run checks
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
run-format:
9+
if: github.event_name == 'push' ||
10+
github.event.pull_request.head.repo.full_name != github.repository
11+
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@master
16+
17+
- name: Check format
18+
run: if [ "$(gofmt -s -l . | wc -l)" -gt 0 ]; then exit 1; fi

0 commit comments

Comments
 (0)