Skip to content

Commit b23960f

Browse files
authored
feat(e2e): support debug mode (#3230)
Signed-off-by: Robin Han <hanxvdovehx@gmail.com>
1 parent bfe3e94 commit b23960f

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/e2e-run.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ on:
1414
test-path:
1515
required: false
1616
type: string
17+
public-ssh-key:
18+
required: false
19+
type: string
20+
description: "Public SSH key for debug access on failure"
1721
workflow_call:
1822
inputs:
1923
runner:
@@ -28,6 +32,9 @@ on:
2832
test-path:
2933
required: false
3034
type: string
35+
public-ssh-key:
36+
required: false
37+
type: string
3138
outputs:
3239
artifact-id:
3340
description: "Artifact ID of the test results"
@@ -110,3 +117,9 @@ jobs:
110117
run: ./tests/docker/ducker-ak down
111118
shell: bash
112119
if: ${{ always() }}
120+
- name: Setup SSH access for debugging
121+
uses: ubicloud/ssh-runner@main
122+
if: ${{ failure() && inputs.public-ssh-key != '' }}
123+
with:
124+
public-ssh-key: ${{ inputs.public-ssh-key }}
125+
wait-minutes: 60

0 commit comments

Comments
 (0)