mirror of
https://github.com/golangci/golangci-lint-action.git
synced 2026-02-21 23:21:49 +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.
|
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:
|
You can put `.github/workflows/lint.yml` with following contents:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
name: golangci
|
name: golangci
|
||||||
on: [push]
|
on: [push]
|
||||||
|
|
@ -17,6 +18,11 @@ jobs:
|
||||||
uses: actions/checkout@v1
|
uses: actions/checkout@v1
|
||||||
- name: golangci-lint
|
- name: golangci-lint
|
||||||
uses: golangci/golangci-lint-action@v0.0.2
|
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).
|
Based on [reviewdog action](https://github.com/reviewdog/action-golangci-lint).
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue