Skip to content

Commit e37b79c

Browse files
committed
chore: add a Makefile and a .gitignore config
1 parent a5102de commit e37b79c

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
config.yaml
2+
.codegpt
3+
bin/

Makefile

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
.PHONY: generate
2+
generate:
3+
@mockery
4+
5+
.PHONY: build
6+
build: generate
7+
@go build -ldflags="-s -w" -o bin/cardano-validator-watcher cmd/watcher/main.go
8+
9+
.PHONY: run
10+
run: generate
11+
@go run cmd/watcher/main.go --config config.yaml
12+
13+
.PHONY: tests
14+
tests:
15+
@go test -v ./...
16+
17+
.PHONY: coverage
18+
coverage:
19+
@go test -coverprofile=coverage.out ./...
20+
@go tool cover -html=coverage.out
21+
22+
.PHONY: lint
23+
lint:
24+
@golangci-lint run ./...
25+
26+
.PHONY: clean
27+
clean:
28+
@echo "cleaning up..."
29+
@rm -rf *.db*

0 commit comments

Comments
 (0)