File tree Expand file tree Collapse file tree 2 files changed +4
-20
lines changed Expand file tree Collapse file tree 2 files changed +4
-20
lines changed Original file line number Diff line number Diff line change 50
50
51
51
steps :
52
52
- uses : actions/setup-go@v2.1.5
53
- with :
54
- go-version : 1.15
55
53
- uses : actions/checkout@v2.4.0
54
+ - uses : golangci/golangci-lint-action@v2
55
+ with :
56
+ version : v1.43.0
56
57
57
58
- name : Go mod
58
59
env :
68
69
echo
69
70
exit 1
70
71
fi
71
-
72
- - run : make lint
Original file line number Diff line number Diff line change 1
1
BINPATH := $(abspath ./bin)
2
- GOLANGCI := $(BINPATH ) /golangci-lint
3
2
4
3
.PHONY : all
5
- all : build lint test
4
+ all : build test
6
5
7
6
#
8
7
# Build Podsync CLI binary
@@ -20,20 +19,6 @@ docker:
20
19
docker build -t $(TAG ) .
21
20
docker push $(TAG )
22
21
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
-
37
22
#
38
23
# Run unit tests
39
24
#
You can’t perform that action at this time.
0 commit comments