Skip to content

Commit 6dd3ab2

Browse files
committed
chore: add aditional commands to makefile
1 parent 59b2902 commit 6dd3ab2

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,7 @@ go.work.sum
3535

3636
/storage/*
3737
!storage/mailer-templates
38-
!storage/migrations
38+
!storage/migrations
39+
40+
coverage.html
41+
coverage.out

Makefile

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,15 @@ bootstrap:
2020
@echo "Bootstrap complete."
2121

2222
test:
23-
go test -v -race -coverprofile=coverage.out -covermode=atomic ./...
23+
go test -v ./...
24+
25+
test-coverage:
26+
go test -coverprofile=coverage.out ./...
27+
go tool cover -html=coverage.out -o coverage.html
28+
@echo "Coverage report: coverage.html"
29+
30+
lint:
31+
golangci-lint run
32+
33+
lint-fix:
34+
golangci-lint run --fix

0 commit comments

Comments
 (0)