docs: add working-directory to README

This commit is contained in:
Denis Isaev 2020-05-21 14:43:37 +03:00 committed by GitHub
parent 20d5541dab
commit 64c208bfbc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -31,9 +31,12 @@ jobs:
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.26
# Optional: working directory, useful for monorepos
# working-directory: somedir
# Optional: golangci-lint command line arguments.
# args: ./the-only-dir-to-analyze/...
# args: --issues-exit-code=0
```
We recommend running this action in a job separate from other jobs (`go test`, etc)