From cb09689a092aceff37ccdcd67ddb483f34a49cb3 Mon Sep 17 00:00:00 2001 From: Srujan Bharadwaj Date: Thu, 26 Dec 2024 16:07:33 +0530 Subject: [PATCH] add lint check in workflow --- .github/workflows/go.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 7e13741..c26c9bf 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -24,6 +24,13 @@ jobs: with: go-version: '1.23' + - name: Install golangci-lint + run: | + curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.50.1 + + - name: Run golangci-lint + run: golangci-lint run + - name: Build run: go build -o server ./cmd