Enable golangci-lint github action
This commit is contained in:
parent
5f4abb5e3e
commit
dbcae8c52a
|
@ -0,0 +1,22 @@
|
||||||
|
name: golangci-lint
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- v*
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
pull_request:
|
||||||
|
jobs:
|
||||||
|
golangci:
|
||||||
|
name: lint
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: golangci-lint
|
||||||
|
uses: golangci/golangci-lint-action@v2
|
||||||
|
with:
|
||||||
|
# the version of golangci-lint.
|
||||||
|
version: v1.32.2
|
||||||
|
|
||||||
|
# show only new issues if it's a pull request.
|
||||||
|
only-new-issues: false
|
Loading…
Reference in New Issue