Skip to content

fix: resolve golangci-lint v2 errcheck and staticcheck warnings #142

fix: resolve golangci-lint v2 errcheck and staticcheck warnings

fix: resolve golangci-lint v2 errcheck and staticcheck warnings #142

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version: '1.25'
- name: Build
run: CGO_ENABLED=0 go build ./...
- name: Test
run: CGO_ENABLED=0 go test -v ./...
env:
CTX_SKIP_PATH_CHECK: "1"
- name: Vet
run: CGO_ENABLED=0 go vet ./...
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version: '1.25'
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v9
with:
version: v2.8.0
args: --timeout=5m