Skip to content

Commit

Permalink
make command to test locally (#40)
Browse files Browse the repository at this point in the history
Signed-off-by: wfan <wfan@lycorp.co.jp>
  • Loading branch information
WindzCUHK committed Apr 17, 2024
1 parent d5513ab commit bb645d3
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# GO_VERSION:=$(shell go version)

# .PHONY: all clean bench bench-all profile lint test contributors update install
.PHONY: deps
.PHONY: deps test coverage

# all: clean install lint test bench

Expand Down Expand Up @@ -32,8 +32,13 @@ deps:
# lint:
# gometalinter --enable-all . | rg -v comment

# test: clean init
# GO111MODULE=on go test --race -v ./...
test:
go test -v -race ./...

coverage:
go test -v -race -covermode=atomic -coverprofile=coverage.out ./...
go tool cover -html=coverage.out -o coverage.html
rm -f coverage.out

# contributors:
# git log --format='%aN <%aE>' | sort -fu > CONTRIBUTORS
Expand All @@ -42,11 +47,6 @@ deps:
# sudo docker build --pull=true --file=Dockerfile -t docker.io/athenz/authorization-proxy:latest .
# sudo docker push docker.io/athenz/authorization-proxy:latest

# coverage:
# go test -v -race -covermode=atomic -coverprofile=coverage.out ./...
# go tool cover -html=coverage.out -o coverage.html
# rm -f coverage.out

check-license-header:
# go install github.com/apache/skywalking-eyes/cmd/license-eye@latest
license-eye -c .licenserc.yaml header check
Expand Down

0 comments on commit bb645d3

Please sign in to comment.