Skip to content

Commit 4f0dcc9

Browse files
authored
Merge pull request #225 from fabriziosestito/test/e2e/export-cluster-logs
2 parents 7ad5dc7 + 54851b8 commit 4f0dcc9

3 files changed

Lines changed: 12 additions & 0 deletions

File tree

.github/workflows/e2e.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,11 @@ jobs:
1313
with:
1414
go-version: "1.24.1"
1515
- run: make test-e2e
16+
- name: Upload cluster logs
17+
if: failure()
18+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
19+
with:
20+
name: e2e-test-cluster-logs
21+
path: test/e2e/logs
22+
if-no-files-found: error
23+
retention-days: 7

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,6 @@ bin
66

77
# Tilt settings
88
tilt-settings.yaml
9+
10+
# e2e cluster logs
11+
test/e2e/logs

test/e2e/main_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ func TestMain(m *testing.M) {
3737
)
3838

3939
testenv.Finish(
40+
envfuncs.ExportClusterLogs(kindClusterName, "./logs"),
4041
envfuncs.DestroyCluster(kindClusterName),
4142
)
4243

0 commit comments

Comments
 (0)