You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/en/setup/Run-E2E-Tests.md
+15-1Lines changed: 15 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,9 +31,23 @@ e2e cleanup
31
31
32
32
To use skywalking-infra-e2e in GitHub Actions, add a step in your GitHub workflow.
33
33
34
+
The working directory could be uploaded to GitHub Action Artifact after the task is completed, which contains environment variables and container logs in the environment.
35
+
34
36
```yaml
35
37
- name: Run E2E Test
36
38
uses: apache/skywalking-infra-e2e@main # always prefer to use a revision instead of `main`.
37
39
with:
38
-
e2e-file: e2e.yaml # need to run E2E file path
40
+
e2e-file: e2e.yaml # (required)need to run E2E file path
41
+
log-dir: /path/to/log/dir # (Optional)Use `<work_dir>/logs/<job_name>_<matrix_value>`(if have GHA matrix) or `<work_dir>/logs/<job_name>` in GHA, and output logs into `<work_dir>/logs` out of GHA env, such as running locally.
42
+
```
43
+
44
+
If you want to upload the log directory to the GitHub Action Artifact when this E2E test failure, you could define the below content in your GitHub Action Job.
45
+
46
+
```yaml
47
+
- name: Upload E2E Log
48
+
uses: actions/upload-artifact@v2
49
+
if: ${{ failure() }} # Only upload the artifact when E2E testing failure
50
+
with:
51
+
name: e2e-log
52
+
path: "${{ env.SW_INFRA_E2E_LOG_DIR }}"# The SkyWalking Infra E2E action sets SW_INFRA_E2E_LOG_DIR automatically.
0 commit comments