Update golangci-lint.yml

Trying a different marketplace action
This commit is contained in:
Densest Void 2020-12-14 21:20:36 -05:00 committed by GitHub
parent eea12a3b50
commit 3e663f8615
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,28 +1,15 @@
name: golangci-lint - name: Run golangci-lint
on: # You may pin to the exact commit or the version.
push: # uses: golangci/golangci-lint-action@04eca2038305127fb1e6683425b6864cd5612f2d
tags: uses: golangci/golangci-lint-action@v1.2.1
- v*
branches:
- master
pull_request:
jobs:
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.3.0
- name: golangci-lint
uses: golangci/golangci-lint-action@v2.3.0
with: with:
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version. # version of golangci-lint to use in form of v1.2.3
version: v1.29 version:
# golangci-lint command line arguments
# Optional: working directory, useful for monorepos args: # optional, default is
# working-directory: somedir # golangci-lint working directory, default is project root
working-directory: # optional
# Optional: golangci-lint command line arguments. # the token is used for fetching patch of a pull request to show only new issues
# args: --issues-exit-code=0 github-token: # default is ${{ github.token }}
# if set to true and the action runs on a pull request - the action outputs only newly found issues
# Optional: show only new issues if it's a pull request. The default value is `false`. only-new-issues:
# only-new-issues: true