Add golangci-lint

https://golangci-lint.run/
This commit is contained in:
Andrey Nering
2022-05-14 21:00:15 -03:00
parent a1f9b584dc
commit 9e1d4e7855
13 changed files with 54 additions and 42 deletions

24
.github/workflows/lint.yml vendored Normal file
View File

@@ -0,0 +1,24 @@
name: Lint
on:
pull_request:
push:
tags:
- v*
branches:
- master
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v3
with:
go-version: 1.18
- uses: actions/checkout@v3
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.46.1