mirror of
https://github.com/golangci/golangci-lint-action.git
synced 2025-12-14 15:01:15 +00:00
expand readme with all optional inputs
This commit is contained in:
parent
666cc9164e
commit
73809ef511
1 changed files with 6 additions and 0 deletions
|
|
@ -5,6 +5,7 @@
|
|||
Action that runs [golangci-lint](https://github.com/golangci/golangci-lint) and reports issues from linters.
|
||||
|
||||
You can put `.github/workflows/lint.yml` with following contents:
|
||||
|
||||
```yaml
|
||||
name: golangci
|
||||
on: [push]
|
||||
|
|
@ -17,6 +18,11 @@ jobs:
|
|||
uses: actions/checkout@v1
|
||||
- name: golangci-lint
|
||||
uses: golangci/golangci-lint-action@v0.0.2
|
||||
# with:
|
||||
# github_token: ${{ secrets.github_token }} #Optional Default: ''
|
||||
# flags: --timeout 30m (golang-ci-lint flags) #Optional Default: ''
|
||||
# directory: Working Directory #Optional Default: ''
|
||||
# format: Output format of issues #Optional Default: 'githu-actions'
|
||||
```
|
||||
|
||||
Based on [reviewdog action](https://github.com/reviewdog/action-golangci-lint).
|
||||
|
|
|
|||
Loading…
Reference in a new issue