Compare commits
6 Commits
Author | SHA1 | Date | |
---|---|---|---|
666cc9164e | |||
24c25982ec | |||
85e31a269e | |||
9c543591de | |||
4cb8a13e45 | |||
67503c7b3d |
4
.github/workflows/golangci.yml
vendored
4
.github/workflows/golangci.yml
vendored
@ -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
|
||||
|
@ -1,4 +1,4 @@
|
||||
FROM golangci/golangci-lint:v1.25
|
||||
FROM golangci/golangci-lint:v1.26
|
||||
|
||||
COPY entrypoint.sh /entrypoint.sh
|
||||
|
||||
|
19
README.md
19
README.md
@ -1,5 +1,22 @@
|
||||
# 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
|
||||
```
|
||||
|
||||
Based on [reviewdog action](https://github.com/reviewdog/action-golangci-lint).
|
||||
|
@ -5,7 +5,7 @@ author: 'golangci'
|
||||
inputs:
|
||||
github_token:
|
||||
description: 'GITHUB_TOKEN'
|
||||
required: true
|
||||
required: false
|
||||
flags:
|
||||
description: 'GolangCI command line flags'
|
||||
required: false
|
||||
|
Reference in New Issue
Block a user