From 1620697708b4c226e4b4b11fb3d8107428736e7e Mon Sep 17 00:00:00 2001 From: Maksym Pavlenko Date: Fri, 31 Dec 2021 14:26:34 +0200 Subject: [PATCH] Use golangci-lint github action --- .github/workflows/ci.yml | 7 +++---- Makefile | 17 +---------------- 2 files changed, 4 insertions(+), 20 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a805e8ee..023fbc24 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -50,9 +50,10 @@ jobs: steps: - uses: actions/setup-go@v2.1.5 - with: - go-version: 1.15 - uses: actions/checkout@v2.4.0 + - uses: golangci/golangci-lint-action@v2 + with: + version: v1.43.0 - name: Go mod env: @@ -68,5 +69,3 @@ jobs: echo exit 1 fi - - - run: make lint diff --git a/Makefile b/Makefile index a533d162..ae2edfba 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,7 @@ BINPATH := $(abspath ./bin) -GOLANGCI := $(BINPATH)/golangci-lint .PHONY: all -all: build lint test +all: build test # # Build Podsync CLI binary @@ -20,20 +19,6 @@ docker: docker build -t $(TAG) . docker push $(TAG) -# -# Pull GolangCI-Lint dependency -# -$(GOLANGCI): - curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(BINPATH) v1.31.0 - $(GOLANGCI) --version - -# -# Run linter -# -.PHONY: lint -lint: $(GOLANGCI) - $(GOLANGCI) run - # # Run unit tests #