Skip to content

Commit

Permalink
ci: add golangci-lint (#311)
Browse files Browse the repository at this point in the history
Signed-off-by: Dhruv Jain <92215138+jaydee029@users.noreply.github.com>
Signed-off-by: Akshay Gaikwad <akgaikwad001@gmail.com>
Co-authored-by: Akshay Gaikwad <akgaikwad001@gmail.com>
  • Loading branch information
jaydee029 and akshay196 committed Apr 18, 2024
1 parent 95cf882 commit d705c16
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/go.yml
Expand Up @@ -33,3 +33,23 @@ jobs:

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4

golangci-lint:
strategy:
matrix:
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- name: checkout the code
uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v5
with:
# Getting go version from the go.mod file
go-version-file: 'go.mod'

- name: golangci-lint
uses: golangci/golangci-lint-action@v4
with:
version: latest
12 changes: 12 additions & 0 deletions .golangci.yml
@@ -0,0 +1,12 @@
linters:
# Disable all linters untill all errors are fixed.
disable-all: true
# uncomment as we fix the linting issues
enable:
# - errcheck
# - gosimple
# - govet
# - staticcheck
# - unused
# - ineffassign
- misspell

0 comments on commit d705c16

Please sign in to comment.