Enable the golangci-lint in the CI

This commit is contained in:
Sameer Rahmani 2021-01-25 19:18:35 +00:00
parent f8d8256d29
commit 146e68670a
2 changed files with 6 additions and 0 deletions

View File

@ -2,6 +2,9 @@ ROOT_DIR=$(dir $(realpath $(firstword $(MAKEFILE_LIST))))
include $(ROOT_DIR)/bootstrap/Makefile
.PHONY: lint
lint: lint-bootstrap
.PHONY: compile
compile: compile-bootstrap

View File

@ -6,3 +6,6 @@ compile-bootstrap:
clean-bootstrap:
docker rmi serene-lang/serene-bootstrap:$(BOOTSTRAP_TAG)
lint-bootstrap:
docker run --rm -v $(BOOTSTRAP_DIR):/app -w /app golangci/golangci-lint:v1.35.2 golangci-lint run pkg/core