refactor: use make in CI, pull module in make docs
Instead of duplicating test logic in both the CI and the Makefile, I made the CI call the Makefile. Also, updated `make docs` so it dynamically pulls the module name from `go list -m`.
This commit is contained in:
2
Makefile
2
Makefile
@@ -33,7 +33,7 @@ lint-makefile: ## Lint the Makefile
|
||||
lint: lint-go lint-makefile ## Lint all code
|
||||
|
||||
docs: ## Serve godoc locally
|
||||
@echo ">>> Visit: http://localhost:6060/pkg/git.maximhutz.com/tools/dsa/"
|
||||
@echo ">>> Visit: http://localhost:6060/pkg/$$(go list -m)"
|
||||
godoc -http=:6060
|
||||
|
||||
clean: ## Clean build and test caches
|
||||
|
||||
Reference in New Issue
Block a user