Skip to content

docs: add guide for CI/CD template testing #15528

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

Merged
merged 8 commits into from
Nov 20, 2024
Prev Previous commit
Next Next commit
Enhance template testing with SSH command execution
Add SSH configuration and example commands to test the workspace creation using the new template version. This ensures the template functions as expected before promotion.
  • Loading branch information
matifali committed Nov 18, 2024
commit 5569c9bdc52b51a0f9e0061e3003dafb99a13b12
8 changes: 7 additions & 1 deletion docs/tutorials/testing-templates.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,13 @@ jobs:

- name: Create a test workspace
run: |
coder create -t $TEMPLATE_NAME --template-version ${{ steps.name.outputs.version_name }} --yes
coder create -t $TEMPLATE_NAME --template-version ${{ steps.name.outputs.version_name }} test-${{ steps.name.outputs.version_name }} --yes

- name: Run some example commands
run: |
coder config-ssh --yes
# run some example commands
coder ssh test-${{ steps.name.outputs.version_name }} -- make build

- name: Promote template version
if: success()
Expand Down