Skip to content

Commit 5569c9b

Browse files
committed
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.
1 parent c391303 commit 5569c9b

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

docs/tutorials/testing-templates.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,13 @@ jobs:
9595
9696
- name: Create a test workspace
9797
run: |
98-
coder create -t $TEMPLATE_NAME --template-version ${{ steps.name.outputs.version_name }} --yes
98+
coder create -t $TEMPLATE_NAME --template-version ${{ steps.name.outputs.version_name }} test-${{ steps.name.outputs.version_name }} --yes
99+
100+
- name: Run some example commands
101+
run: |
102+
coder config-ssh --yes
103+
# run some example commands
104+
coder ssh test-${{ steps.name.outputs.version_name }} -- make build
99105
100106
- name: Promote template version
101107
if: success()

0 commit comments

Comments
 (0)