Skip to content

Commit 0eb3f4f

Browse files
committed
separate boilerplate and add go modtidy
1 parent 51e1426 commit 0eb3f4f

File tree

1 file changed

+20
-3
lines changed

1 file changed

+20
-3
lines changed

.github/workflows/lint.yml

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,27 @@ jobs:
2626
cache: true
2727
- name: Download Dependencies
2828
run: go mod download
29-
- name: unit test
30-
timeout-minutes: 5
29+
- name: lint
30+
timeout-minutes: 8
3131
env:
32-
TESTSUITE: lintall
32+
TESTSUITE: lint
3333
run: make test
3434
continue-on-error: false
35+
- name: boilerplate check
36+
timeout-minutes: 2
37+
env:
38+
TESTSUITE: boilerplate
39+
run: make test
40+
continue-on-error: false
41+
- name: gomod tidy check
42+
timeout-minutes: 2
43+
continue-on-error: false
44+
run: |
45+
make gomodtidy
46+
if ! git diff --quiet; then
47+
echo "::error::Please run 'make gomodtidy' and commit the changes"
48+
git diff --name-only
49+
exit 1
50+
fi
3551
52+

0 commit comments

Comments
 (0)