Add a golangci-lint Github Action

The go vet is appended, because I have seen some important
lint issues that are disabled by golangci-lint being reported by
the vanilla go vet commnand
This commit is contained in:
Daisuke Maki 2021-02-01 06:37:26 +09:00
parent 1ea4ffc9c8
commit c3e7356903
1 changed files with 14 additions and 0 deletions

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

@ -0,0 +1,14 @@
name: lint
on: [push]
jobs:
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: golangci/golangci-lint-action@v2
with:
version: v1.34.1
- name: Run go vet
run: |
go vet ./...