From 05eb619c40c591dae232b050c410abb50b90a8c9 Mon Sep 17 00:00:00 2001 From: Densest Void Date: Fri, 22 Jan 2021 14:36:24 -0500 Subject: [PATCH] Update golangci-lint.yml --- .github/workflows/golangci-lint.yml | 42 ++++++++++++++++++----------- 1 file changed, 27 insertions(+), 15 deletions(-) diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index 65dd2ed..70ffd61 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -1,15 +1,27 @@ -- name: Run golangci-lint - # You may pin to the exact commit or the version. - # uses: golangci/golangci-lint-action@04eca2038305127fb1e6683425b6864cd5612f2d - uses: golangci/golangci-lint-action@v1.2.1 - with: - # version of golangci-lint to use in form of v1.2.3 - version: - # golangci-lint command line arguments - args: # optional, default is - # golangci-lint working directory, default is project root - working-directory: # optional - # the token is used for fetching patch of a pull request to show only new issues - 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 - only-new-issues: +name: golangci-lint +on: + push: + 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: + # 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 + + # Optional: if set to true then the action will use pre-installed Go + # skip-go-installation: true