golangci-lint in CI

This commit is contained in:
Neil Alexander 2020-09-27 13:51:34 +01:00
parent 48bf0ce210
commit f0275b01b6
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944
2 changed files with 15 additions and 0 deletions

View file

@ -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: |