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