Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dev: adding a command for creating a dev environment in codespaces from cli #672

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,20 @@ tidy: ## Recursively "go mod tidy" on all directories where go.mod exists
download: ## Recursively "go mod download" on all directories where go.mod exists
$(foreach dir,$(MOD_DIRS),cd $(dir) && go mod download $(newline))

.PHONY: help presubmit ci-test ci-non-test test deflake e2etests coverage verify vulncheck licenses codegen snapshot release toolchain tidy download

codespace:
@if [ -z "$(BRANCH)" ]; then \
echo "Usage: make codespace BRANCH=<branch_name>"; \
exit 1; \
fi
gh auth refresh -h github.com -s codespace
@echo "Creating new branch '$(BRANCH)' locally..."
git checkout -b $(BRANCH)
git push -u origin $(BRANCH)
@echo "Creating a GitHub Codespace for branch '$(BRANCH)' with maximum machine size..."
gh codespace create --branch $(BRANCH) --machine premiumLinux

.PHONY: help presubmit ci-test ci-non-test test deflake e2etests coverage verify vulncheck licenses codegen snapshot release toolchain tidy download codespace

define newline

Expand Down