From ea5a608a7643bb448e522c814d7864fe43650394 Mon Sep 17 00:00:00 2001 From: Ahmed Magdy Date: Wed, 17 Jun 2020 22:50:47 +0200 Subject: [PATCH] install golint (#2) * install golint * add logging * disable linting for now * remove unused file with the package name --- .github/workflows/go.yml | 9 +++++---- k8s-pod-scheduler.go | 1 - 2 files changed, 5 insertions(+), 5 deletions(-) delete mode 100644 k8s-pod-scheduler.go diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index f4bf53b..a5fe8c4 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -31,6 +31,8 @@ jobs: - name: Get dependencies run: | go get -v -t -d ./... + go get -u github.com/golang/protobuf/protoc-gen-go + go install golang.org/x/lint/golint if [ -f Gopkg.toml ]; then curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh dep ensure @@ -38,16 +40,15 @@ jobs: - name: Generate Proto run: | - go get -u github.com/golang/protobuf/protoc-gen-go - bash ./script/generate_proto.sh + bash ./scripts/generate_proto.sh - name: Lint run: | - golint ./... + golint -set_exit_status ./... - name: Build run: | - go build -v . + go build -v ./... - name: Test run: go test -v . diff --git a/k8s-pod-scheduler.go b/k8s-pod-scheduler.go deleted file mode 100644 index b09a49a..0000000 --- a/k8s-pod-scheduler.go +++ /dev/null @@ -1 +0,0 @@ -package k8s_pod_scheduler