Skip to content

Update golangci-lint to v2.1.6 and fix linting errors #25

Update golangci-lint to v2.1.6 and fix linting errors

Update golangci-lint to v2.1.6 and fix linting errors #25

Workflow file for this run

---
name: Lint
"on":
push:
branches:
- main
pull_request:
permissions:
contents: read
jobs:
golangci:
name: golangci-lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
check-latest: true
- run: go version
- name: golangci-lint
uses: golangci/golangci-lint-action@v7
with:
version: 'v2.1.6'
govet:
name: go vet
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
check-latest: true
- run: go version
- run: go vet ./...