Skip to content

Enable linter in the CI #106

Enable linter in the CI

Enable linter in the CI #106

Workflow file for this run

name: Go lint
on:
push:
branches: [ master ]
pull_request_target:
types: [opened, synchronize, reopened]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Set up Go ^1.20
uses: actions/setup-go@v3
with:
go-version: ^1.20
- name: Check out code into the Go module directory
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
- name: Tidy
run: go mod tidy && [ -z "$(git status -s)" ]
- name: debug
run: go env
- name: Lint
run: |
go install github.com/golangci/golangci-lint/cmd/[email protected]
${GOBIN}/golangci-lint run
- name: Vet
run: make vet