From ddf56d8799a7b14fa1704792de2100c58b87d9b8 Mon Sep 17 00:00:00 2001 From: Valery Piashchynski Date: Fri, 12 Apr 2024 10:06:27 +0200 Subject: [PATCH] chore: remove otel experimental flag, update ci Signed-off-by: Valery Piashchynski --- .github/workflows/linters.yml | 4 ++-- .github/workflows/linux.yml | 2 +- .golangci.yml | 14 +++----------- go.work.sum | 30 +++++++++++++++++++++++++++++- plugin.go | 3 --- server.go | 6 +----- 6 files changed, 36 insertions(+), 23 deletions(-) diff --git a/.github/workflows/linters.yml b/.github/workflows/linters.yml index 4e5732a..6df402a 100644 --- a/.github/workflows/linters.yml +++ b/.github/workflows/linters.yml @@ -16,8 +16,8 @@ jobs: go-version: stable - name: Run linter - uses: golangci/golangci-lint-action@v3.7.0 # Action page: + uses: golangci/golangci-lint-action@v4.0.0 # Action page: with: - version: v1.56 # without patch version + version: v1.57 # without patch version only-new-issues: false # show only new issues if it's a pull request args: --timeout=10m --build-tags=race diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index eca7fa1..4443e26 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -68,7 +68,7 @@ jobs: - name: Install protoc uses: arduino/setup-protoc@v3 with: - version: '23.x' + version: '26.x' repo-token: ${{ secrets.GITHUB_TOKEN }} - name: Run golang root module tests diff --git a/.golangci.yml b/.golangci.yml index a0e58ea..104ca3d 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -2,21 +2,11 @@ run: timeout: 1m - skip-dirs: - - .github - - .git allow-parallel-runners: true -output: - format: colored-line-number # colored-line-number|line-number|json|tab|checkstyle|code-climate - linters-settings: wsl: allow-assign-and-anything: true - govet: - check-shadowing: true - golint: - min-confidence: 0.1 gocyclo: min-complexity: 15 godot: @@ -36,7 +26,6 @@ linters-settings: range-loops: true for-loops: true nolintlint: - allow-leading-space: false require-specific: true linters: # All available linters list: @@ -78,6 +67,9 @@ linters: # All available linters list: