@@ -18,12 +18,12 @@ tests: | unit-tests
18
18
19
19
unit-tests : # # Runs unit tests
20
20
@echo --- Running unit tests...
21
- @date --rfc-3339=seconds
21
+ @date -Iseconds
22
22
@go test -race -cover -failfast -tags testtools -p 1 -v ./...
23
23
24
24
coverage : # # Generates coverage report
25
25
@echo --- Generating coverage report...
26
- @date --rfc-3339=seconds
26
+ @date -Iseconds
27
27
@go test -race -coverprofile=coverage.out -covermode=atomic -tags testtools -p 1 ./...
28
28
@go tool cover -func=coverage.out
29
29
@go tool cover -html=coverage.out
@@ -32,53 +32,53 @@ lint: golint ## Runs linting
32
32
33
33
golint :
34
34
@echo --- Running golint...
35
- @date --rfc-3339=seconds
35
+ @date -Iseconds
36
36
@golangci-lint run
37
37
38
38
clean : # # Clean up all the things
39
39
@echo --- Cleaning...
40
- @date --rfc-3339=seconds
40
+ @date -Iseconds
41
41
@rm -rf ./bin/
42
42
@rm -rf coverage.out
43
43
@go clean -testcache
44
44
45
45
binary : | vendor generate # # Builds the binary
46
46
@echo --- Building binary...
47
- @date --rfc-3339=seconds
47
+ @date -Iseconds
48
48
@go build -o bin/${APP_NAME} main.go
49
49
50
50
vendor : # # Vendors dependencies
51
51
@echo --- Downloading dependencies...
52
- @date --rfc-3339=seconds
52
+ @date -Iseconds
53
53
@go mod tidy
54
54
@go mod download
55
55
56
56
testclient :| background-run .testclient kill-running # # Regenerates the test client in graphclient
57
57
58
58
.testclient :
59
59
@echo --- Generating test graph client...
60
- @date --rfc-3339=seconds
60
+ @date -Iseconds
61
61
@go generate ./internal/graphclient
62
62
63
63
dev-nats : # # Initializes nats
64
64
@echo --- Initializing nats
65
- @date --rfc-3339=seconds
65
+ @date -Iseconds
66
66
@.devcontainer/scripts/nats_account.sh
67
67
68
68
generate : background-run .generate kill-running # # Generates code
69
69
70
70
.generate :
71
71
@echo --- Generating code...
72
- @date --rfc-3339=seconds
72
+ @date -Iseconds
73
73
@go generate ./...
74
74
75
75
go-run : # # Runs the app
76
76
@echo --- Running binary...
77
- @date --rfc-3339=seconds
77
+ @date -Iseconds
78
78
@go run main.go serve --dev --oidc=false
79
79
80
80
background-run : # # Runs in the app in the background
81
- @date --rfc-3339=seconds
81
+ @date -Iseconds
82
82
@if [ ! -f " ${PID_FILE} " ]; then \
83
83
echo --- Running binary in the background...; \
84
84
go run main.go serve --pid-file=${PID_FILE} --dev --oidc=false & \
@@ -88,5 +88,5 @@ background-run: ## Runs in the app in the background
88
88
89
89
kill-running : # # Kills the running binary from pid file
90
90
@echo --- Killing background binary...
91
- @date --rfc-3339=seconds
91
+ @date -Iseconds
92
92
@kill $$(cat ${PID_FILE} )
0 commit comments