Skip to content

Commit

Permalink
github-ci: add job with golang-lint
Browse files Browse the repository at this point in the history
Part of #142
  • Loading branch information
ligurio committed Apr 12, 2022
1 parent f67a26e commit ce6643b
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,19 @@ jobs:

- name: Run luacheck
run: ./.rocks/bin/luacheck .

golangci-lint:
runs-on: ubuntu-latest
if: |
github.event_name == 'push' ||
github.event_name == 'pull_request' &&
github.event.pull_request.head.repo.full_name != github.repository
steps:
- uses: actions/setup-go@v2

- uses: actions/checkout@v2

- name: golangci-lint
uses: golangci/golangci-lint-action@v2
with:
args: --issues-exit-code=0 -E gofmt

0 comments on commit ce6643b

Please sign in to comment.