Skip to content

Commit 7897baf

Browse files
committed
github-ci: add job with golang-lint
Part of #142
1 parent f37ec79 commit 7897baf

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/check.yaml

+16
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,19 @@ 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+
steps:
35+
- uses: actions/setup-go@v2
36+
37+
- uses: actions/checkout@v2
38+
39+
- name: golangci-lint
40+
uses: golangci/golangci-lint-action@v2
41+
with:
42+
args: --issues-exit-code=0 -E gofmt

0 commit comments

Comments
 (0)