35 lines
		
	
	
		
			720 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
			
		
		
	
	
			35 lines
		
	
	
		
			720 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
# -----------------------------------------------
 | 
						|
# -- Main rules
 | 
						|
# -----------------------------------------------
 | 
						|
build: tidy
 | 
						|
	@./scripts/build
 | 
						|
 | 
						|
tidy: 
 | 
						|
	@go mod tidy
 | 
						|
 | 
						|
test: tidy
 | 
						|
	go test ./...
 | 
						|
 | 
						|
lint: tidy
 | 
						|
	golangci-lint run --timeout 2m
 | 
						|
 | 
						|
fmt:
 | 
						|
	go fmt ./...
 | 
						|
 | 
						|
# -----------------------------------------------
 | 
						|
# -- Git helpers
 | 
						|
# -----------------------------------------------
 | 
						|
push_notes:
 | 
						|
	git push origin 'refs/notes/*'
 | 
						|
 | 
						|
fetch_notes:
 | 
						|
	git fetch origin 'refs/notes/*:refs/notes/*'
 | 
						|
 | 
						|
# -----------------------------------------------
 | 
						|
# -- Helpers 
 | 
						|
# -----------------------------------------------
 | 
						|
run:
 | 
						|
	go run main.go --config example.config.yaml --helm /Users/allanger/.rd/bin/helm --workdir test
 | 
						|
cleanup: 
 | 
						|
	rm -rf test
 |