Skip to content

Commit

Permalink
ci: Add lint on gha
Browse files Browse the repository at this point in the history
  • Loading branch information
qustavo committed Sep 21, 2021
1 parent 4c62f42 commit 6d849c5
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/lint.yml
@@ -0,0 +1,15 @@
name: lint
on:
pull_request:
jobs:
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: golangci-lint
uses: golangci/golangci-lint-action@v2
with:
# Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version
version: latest

8 changes: 8 additions & 0 deletions .golangci.yml
@@ -0,0 +1,8 @@
linters-settings:
staticcheck:
checks: ["all", "-SA1019"]
issues:
exclude-rules:
- path: example_test.go
linters:
- errcheck

0 comments on commit 6d849c5

Please sign in to comment.