Skip to content

Setup golangci-lint #4

@peaceiris

Description

@peaceiris
    - name: Install golangci-lint
      run: |
        GOLANGCI_LINT_VERSION="v1.43.0"
        curl -sSfL "https://raw.githubusercontent.com/golangci/golangci-lint/${GOLANGCI_LINT_VERSION}/install.sh" > ./install-golangci-lint.sh
        echo "294771225087ee48c8e0a45a99ac82ed8f9c6e9d384e692ab201986479c8594f  install-golangci-lint.sh" | shasum -a 256 -c
        cat ./install-golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin "${GOLANGCI_LINT_VERSION}"
        rm ./install-golangci-lint.sh
        golangci-lint --version
    - name: lint
      working-directory: ${{ matrix.config }}
      run: golangci-lint run --deadline=300s

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions