-8
Makefile
-8
Makefile
···
1
1
.PHONY: clean test release
2
2
3
-
# Clean all build artifacts
4
3
clean:
5
4
go clean ./...
6
-
7
-
# Run tests
8
5
test:
9
6
go test -v ./...
10
7
11
-
# Create a new release
12
-
# - Ensures main branch has no uncommitted changes
13
-
# - Pushes main to origin if needed
14
-
# - Tags with version from svu next
15
-
# - Pushes tags to origin
16
8
release:
17
9
@# Ensure we're on main branch
18
10
@if [ "$$(git branch --show-current)" != "main" ]; then \