File tree Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change 4040 - uses : actions/setup-go@v1
4141 with :
4242 go-version : ${{ matrix.go }}
43- - run : make deps
4443 - run : make
4544 - run : make lint
4645 - name : make test
Original file line number Diff line number Diff line change @@ -122,18 +122,27 @@ distclean: clean
122122 $(call rmi-if-exists,$(FIRECRACKER_CONTAINERD_TEST_IMAGE ) :$(DOCKER_IMAGE_TAG ) )
123123 $(call rmi-if-exists,localhost/$(PROTO_BUILDER_NAME ) :$(DOCKER_IMAGE_TAG ) )
124124
125- lint :
125+ deps = \
126+ $(BINPATH ) /golangci-lint \
127+ $(BINPATH ) /git-validation \
128+ $(BINPATH ) /ltag
129+
130+ lint : $(deps )
126131 $(BINPATH ) /ltag -t ./.headers -excludes " tools $( SUBMODULES) " -check -v
127132 $(BINPATH ) /git-validation -run DCO,short-subject -range HEAD~20..HEAD
128133 $(BINPATH ) /golangci-lint run
129134
130135tidy :
131136 ./tools/tidy.sh
132137
133- deps :
138+ $( BINPATH ) /golangci-lint :
134139 curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s -- -b $(BINPATH ) v1.46.2
135140 $(BINPATH ) /golangci-lint --version
141+
142+ $(BINPATH ) /git-validation :
136143 GOBIN=$(BINPATH ) GO111MODULE=off go get -u github.com/vbatts/git-validation
144+
145+ $(BINPATH ) /ltag :
137146 GOBIN=$(BINPATH ) GO111MODULE=off go get -u github.com/kunalkushwaha/ltag
138147
139148install :
@@ -198,7 +207,7 @@ firecracker-containerd-test-image: all-in-docker firecracker runc test-cni-bins
198207 --build-arg FIRECRACKER_TARGET=$(FIRECRACKER_TARGET ) \
199208 --tag $(FIRECRACKER_CONTAINERD_TEST_IMAGE ) :${DOCKER_IMAGE_TAG} .
200209
201- .PHONY : all $(SUBDIRS ) clean proto deps lint install image test-images firecracker-container-test-image firecracker-containerd-integ-test-image test test-in-docker $(TEST_SUBDIRS ) integ-test $(INTEG_TEST_SUBDIRS ) tidy
210+ .PHONY : all $(SUBDIRS ) clean proto lint install image test-images firecracker-container-test-image firecracker-containerd-integ-test-image test test-in-docker $(TEST_SUBDIRS ) integ-test $(INTEG_TEST_SUBDIRS ) tidy
202211
203212# #########################
204213# Runtime config
You can’t perform that action at this time.
0 commit comments