Skip to content

Add golangci-lint

Add golangci-lint #57

Workflow file for this run

name: Build, lint, test
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.22'
- name: Build
run: go build -v ./...
- name: Lint
run: |
go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.57.2
golangci-lint run --fix=false
- name: Test
run: go test -v ./...