Skip to content

Commit

Permalink
Use golangci-lint github action
Browse files Browse the repository at this point in the history
  • Loading branch information
mxpv committed Dec 31, 2021
1 parent 24aed66 commit 1620697
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 20 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -68,5 +69,3 @@ jobs:
echo
exit 1
fi
- run: make lint
17 changes: 1 addition & 16 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
BINPATH := $(abspath ./bin)
GOLANGCI := $(BINPATH)/golangci-lint

.PHONY: all
all: build lint test
all: build test

#
# Build Podsync CLI binary
Expand All @@ -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
#
Expand Down

0 comments on commit 1620697

Please sign in to comment.