Enable golangci-lint github action

This commit is contained in:
RainbowMango 2020-11-16 12:51:02 +08:00 committed by Kevin Wang
parent 5f4abb5e3e
commit dbcae8c52a
1 changed files with 22 additions and 0 deletions

22
.github/workflows/golangci-lint.yml vendored Normal file
View File

@ -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