Compare commits

...

6 Commits

Author SHA1 Message Date
666cc9164e use golangci-lint v1.26 2020-05-03 16:06:24 +03:00
24c25982ec all: remove github token from readme 2020-04-26 19:51:36 +03:00
85e31a269e Merge pull request #2 from golangci/release-04-26
Update readme and action
2020-04-26 19:45:07 +03:00
9c543591de workflow: remove github token 2020-04-26 19:43:53 +03:00
4cb8a13e45 action: make github token optional 2020-04-26 19:41:24 +03:00
67503c7b3d readme: improve 2020-04-26 19:40:37 +03:00
4 changed files with 21 additions and 6 deletions

View File

@ -5,12 +5,10 @@ jobs:
name: lint
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v1
- uses: actions/checkout@v2
- name: golangci-lint
uses: ./
with:
github_token: ${{ secrets.github_token }}
directory: sample
format: colored-line-number
flags: --issues-exit-code 0

View File

@ -1,4 +1,4 @@
FROM golangci/golangci-lint:v1.25
FROM golangci/golangci-lint:v1.26
COPY entrypoint.sh /entrypoint.sh

View File

@ -1,5 +1,22 @@
# golangci-lint-action
Work in progress
![docker image](https://github.com/golangci/golangci-lint-action/workflows/docker%20image/badge.svg)
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
```
Based on [reviewdog action](https://github.com/reviewdog/action-golangci-lint).

View File

@ -5,7 +5,7 @@ author: 'golangci'
inputs:
github_token:
description: 'GITHUB_TOKEN'
required: true
required: false
flags:
description: 'GolangCI command line flags'
required: false