Create golangci-lint.yml

This commit is contained in:
Densest Void 2020-07-31 08:17:25 -04:00 committed by GitHub
parent 755d681f86
commit d9dec16e27
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

@ -0,0 +1,28 @@
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@v1
with:
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
version: v1.29
# Optional: working directory, useful for monorepos
# working-directory: somedir
# Optional: golangci-lint command line arguments.
# args: --issues-exit-code=0
# Optional: show only new issues if it's a pull request. The default value is `false`.
# only-new-issues: true