From 93123a07c2574643e03a0f502106fc9e85ca090c Mon Sep 17 00:00:00 2001 From: Piyush Singh Date: Sun, 9 Jun 2024 13:52:27 +0530 Subject: [PATCH] fix workflows --- .github/workflows/lint.yml | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 924e3cb..680abe1 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -12,15 +12,17 @@ jobs: lint: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 #checks project source code into the container - - uses: actions/setup-go@v4 #sets up go environment - with : - go-version: 1.22.2 - - - name: Install dependencies - run: go mod download - - - name: lint code - run: | - curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.26.0 - golangci-lint run + - uses: actions/checkout@v4 # Checks project source code into the container + - uses: actions/setup-go@v4 # Sets up Go environment + with: + go-version: 1.22.2 # Use a more stable version of Go + + - name: Install dependencies + run: go mod download + + - name: Install golangci-lint + run: | + curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin latest + + - name: Lint code + run: golangci-lint run