fix(neuron): avoid flooding logs when disconnect (#3393) #5878
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Lint | |
concurrency: | |
group: lint-${{ github.event_name }}-${{ github.ref }} | |
cancel-in-progress: true | |
on: | |
push: | |
pull_request: | |
types: [opened, edited, synchronize, reopened] | |
permissions: | |
contents: read | |
pull-requests: read | |
jobs: | |
check_licenses: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version-file: 'go.mod' | |
- name: Check licenses | |
run: | | |
go install github.com/google/go-licenses@latest | |
$(go env GOPATH)/bin/go-licenses check ./... --disallowed_types forbidden,restricted --ignore modernc.org/mathutil | |
golangci_lint: | |
runs-on: ubuntu-latest | |
needs: | |
- check_licenses | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version-file: 'go.mod' | |
- name: Install dependencies | |
env: | |
DEBIAN_FRONTEND: noninteractive | |
run: | | |
sudo apt-get update && sudo apt-get install -y --no-install-recommends pkg-config libzmq3-dev | |
- name: golangci-lint | |
uses: golangci/golangci-lint-action@v6 | |
with: | |
version: latest | |
args: "--out-${NO_FUTURE}format line-number" | |
- name: golangci-lint (tools/kubernetes) | |
uses: golangci/golangci-lint-action@v6 | |
with: | |
version: latest | |
working-directory: tools/kubernetes | |
args: "--out-${NO_FUTURE}format line-number" | |
- name: golangci-lint (sdk/go) | |
uses: golangci/golangci-lint-action@v6 | |
with: | |
version: latest | |
working-directory: sdk/go | |
args: "--out-${NO_FUTURE}format line-number --config=.gosdkci.yaml" |