summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsiddharth ravikumar <s@ricketyspace.net>2022-12-25 11:16:51 -0500
committersiddharth ravikumar <s@ricketyspace.net>2022-12-25 11:16:51 -0500
commit28386eb5f6c57b724c203b6043b211db36fc6c41 (patch)
treef29126d4ee2663e6264530dd0649ee830f7b8209
parent67decc2e31b0f064bb9e29b41780214fc3529bf4 (diff)
Makefile: update `build` and `test` targets.
Build and test with `-race` flag.
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 66a2090..3a8b224 100644
--- a/Makefile
+++ b/Makefile
@@ -4,7 +4,7 @@
MOD=ricketyspace.net/fern
fern: fmt fix vet
- go build
+ go build -race
fmt:
go fmt ./...
@@ -16,5 +16,5 @@ vet:
go vet ./...
test:
- go test ${MOD}/db ${MOD}/feed ${MOD}/file ${MOD}/schema
+ go test -race ${MOD}/db ${MOD}/feed ${MOD}/file ${MOD}/schema
.PHONY: test