github.com/ecodeclub/eorm@v0.0.2-0.20231001112437-dae71da914d0/Makefile (about) 1 # 单元测试 2 .PHONY: ut 3 ut: 4 @go test -race ./... 5 6 .PHONY: setup 7 setup: 8 @sh ./script/setup.sh 9 10 .PHONY: lint 11 lint: 12 golangci-lint run 13 14 .PHONY: fmt 15 fmt: 16 @sh ./script/fmt.sh 17 18 .PHONY: tidy 19 tidy: 20 @go mod tidy -v 21 22 .PHONY: check 23 check: 24 @$(MAKE) --no-print-directory fmt 25 @$(MAKE) --no-print-directory tidy 26 27 # e2e 测试 28 .PHONY: e2e 29 e2e: 30 sh ./script/integrate_test.sh 31 32 .PHONY: e2e_up 33 e2e_up: 34 docker compose -f script/integration_test_compose.yml up -d 35 36 .PHONY: e2e_down 37 e2e_down: 38 docker compose -f script/integration_test_compose.yml down