Merge pull request #2 from golangci/release-04-26
Update readme and action
This commit is contained in:
commit
85e31a269e
1
.github/workflows/golangci.yml
vendored
1
.github/workflows/golangci.yml
vendored
@ -10,7 +10,6 @@ jobs:
|
|||||||
- name: golangci-lint
|
- name: golangci-lint
|
||||||
uses: ./
|
uses: ./
|
||||||
with:
|
with:
|
||||||
github_token: ${{ secrets.github_token }}
|
|
||||||
directory: sample
|
directory: sample
|
||||||
format: colored-line-number
|
format: colored-line-number
|
||||||
flags: --issues-exit-code 0
|
flags: --issues-exit-code 0
|
||||||
|
22
README.md
22
README.md
@ -1,5 +1,25 @@
|
|||||||
# golangci-lint-action
|
# golangci-lint-action
|
||||||
|
|
||||||
Work in progress
|

|
||||||
|
|
||||||
|
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]
|
||||||
|
jobs:
|
||||||
|
golangci:
|
||||||
|
name: lint
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Check out code into the Go module directory
|
||||||
|
uses: actions/checkout@v1
|
||||||
|
- name: golangci-lint
|
||||||
|
uses: golangci/golangci-lint-action@v0.0.2
|
||||||
|
with:
|
||||||
|
github_token: ${{ secrets.github_token }}
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
Based on [reviewdog action](https://github.com/reviewdog/action-golangci-lint).
|
Based on [reviewdog action](https://github.com/reviewdog/action-golangci-lint).
|
||||||
|
@ -5,7 +5,7 @@ author: 'golangci'
|
|||||||
inputs:
|
inputs:
|
||||||
github_token:
|
github_token:
|
||||||
description: 'GITHUB_TOKEN'
|
description: 'GITHUB_TOKEN'
|
||||||
required: true
|
required: false
|
||||||
flags:
|
flags:
|
||||||
description: 'GolangCI command line flags'
|
description: 'GolangCI command line flags'
|
||||||
required: false
|
required: false
|
||||||
|
Loading…
x
Reference in New Issue
Block a user