Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
.PHONY: build test lint security shellcheck check cover clean

BINARY := ts-bridge
COVER := coverage.out

build:
go build -o $(BINARY) .

test:
go test -race -v ./...

lint:
golangci-lint run

security:
gosec ./...

shellcheck:
shellcheck scripts/dev.sh scripts/client/run.sh scripts/client/bootstrap.sh

cover:
go test -race -coverprofile=$(COVER) ./...
go tool cover -func=$(COVER)

check: lint test security shellcheck

clean:
rm -f $(BINARY) $(COVER)
Loading