mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-30 07:05:06 +03:00
golangci-lint in CI
This commit is contained in:
parent
48bf0ce210
commit
f0275b01b6
2 changed files with 15 additions and 0 deletions
|
@ -33,6 +33,12 @@ jobs:
|
|||
sudo apt-get install -y rpm file
|
||||
mkdir -p ~/rpmbuild/BUILD ~/rpmbuild/RPMS ~/rpmbuild/SOURCES ~/rpmbuild/SPECS ~/rpmbuild/SRPMS
|
||||
|
||||
- run:
|
||||
name: Run golangci-lint
|
||||
command: |
|
||||
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.31.0
|
||||
golangci-lint run
|
||||
|
||||
- run:
|
||||
name: Test debug builds
|
||||
command: |
|
||||
|
|
9
.golangci.yml
Normal file
9
.golangci.yml
Normal file
|
@ -0,0 +1,9 @@
|
|||
---
|
||||
run:
|
||||
issues-exit-code: 0 # TODO: change this to 1 when we want it to fail builds
|
||||
skip-dirs:
|
||||
- contrib/
|
||||
- misc/
|
||||
linters:
|
||||
disable:
|
||||
- gocyclo
|
Loading…
Add table
Add a link
Reference in a new issue