Skip to content

Commit 957acb5

Browse files
committed
github-ci: add job with golang-lint
Part of #142
1 parent f67a26e commit 957acb5

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
@@ -24,3 +24,21 @@ jobs:
2424

2525
- name: Run luacheck
2626
run: ./.rocks/bin/luacheck .
27+
28+
golangci-lint:
29+
runs-on: ubuntu-latest
30+
if: |
31+
github.event_name == 'push' ||
32+
github.event_name == 'pull_request' &&
33+
github.event.pull_request.head.repo.full_name != github.repository
34+
35+
runs-on: ubuntu-latest
36+
steps:
37+
- uses: actions/setup-go@v2
38+
39+
- uses: actions/checkout@v2
40+
41+
- name: golangci-lint
42+
uses: golangci/golangci-lint-action@v2
43+
with:
44+
args: --issues-exit-code=0 -E gofmt

0 commit comments

Comments
 (0)