-
-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add github workflow with golangsci-lint analysis
- Loading branch information
1 parent
e34ed34
commit 0121598
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: Golangci-lint | ||
|
||
# golangci-lint is a fast Go linters runner. It runs linters in parallel, | ||
# uses caching, supports yaml config, has integrations with all major IDE and | ||
# has dozens of linters included. | ||
# see: https://github.com/golangci/golangci-lint-action | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
jobs: | ||
golangci: | ||
name: lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-go@v2 | ||
with: | ||
go-version: "^1.17" # The Go version to download (if necessary) and use. | ||
- run: go version | ||
- name: golangci-lint | ||
uses: golangci/golangci-lint-action@v2 | ||
with: | ||
version: latest | ||
skip-go-installation: true | ||
args: --timeout=5m |