Skip to content

Commit 1620697

Browse files
committed
Use golangci-lint github action
1 parent 24aed66 commit 1620697

File tree

2 files changed

+4
-20
lines changed

2 files changed

+4
-20
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,10 @@ jobs:
5050

5151
steps:
5252
- uses: actions/setup-go@v2.1.5
53-
with:
54-
go-version: 1.15
5553
- uses: actions/checkout@v2.4.0
54+
- uses: golangci/golangci-lint-action@v2
55+
with:
56+
version: v1.43.0
5657

5758
- name: Go mod
5859
env:
@@ -68,5 +69,3 @@ jobs:
6869
echo
6970
exit 1
7071
fi
71-
72-
- run: make lint

Makefile

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
BINPATH := $(abspath ./bin)
2-
GOLANGCI := $(BINPATH)/golangci-lint
32

43
.PHONY: all
5-
all: build lint test
4+
all: build test
65

76
#
87
# Build Podsync CLI binary
@@ -20,20 +19,6 @@ docker:
2019
docker build -t $(TAG) .
2120
docker push $(TAG)
2221

23-
#
24-
# Pull GolangCI-Lint dependency
25-
#
26-
$(GOLANGCI):
27-
curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(BINPATH) v1.31.0
28-
$(GOLANGCI) --version
29-
30-
#
31-
# Run linter
32-
#
33-
.PHONY: lint
34-
lint: $(GOLANGCI)
35-
$(GOLANGCI) run
36-
3722
#
3823
# Run unit tests
3924
#

0 commit comments

Comments
 (0)