ci: add golangci-lint (#311)

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>
This commit is contained in:
Dhruv Jain
2024-04-18 11:46:40 +05:30
committed by GitHub
parent 95cf882e62
commit d705c16ced
2 changed files with 32 additions and 0 deletions

View File

@@ -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