From f156c6c6a18cf18e820e633002d34ec0585a2b73 Mon Sep 17 00:00:00 2001 From: Cornelius Roemer Date: Fri, 10 May 2024 01:00:36 +0200 Subject: [PATCH] ci(e2e): Add E2E result summary to job summary to make it faster to find flaky tests. (#1836) --- .github/workflows/e2e-k3d.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/e2e-k3d.yml b/.github/workflows/e2e-k3d.yml index 8253920dda..e7ebf6a357 100644 --- a/.github/workflows/e2e-k3d.yml +++ b/.github/workflows/e2e-k3d.yml @@ -133,7 +133,11 @@ jobs: - name: Sleep for 10 secs run: sleep 10 - name: Run E2E test - run: cd website && npm run e2e + run: | + cd website && npm run e2e 2>&1 | tee output.txt + echo '```' >> $GITHUB_STEP_SUMMARY + sed -n '/Running [0-9]\+ tests/,$p' output.txt >> $GITHUB_STEP_SUMMARY + echo '```' >> $GITHUB_STEP_SUMMARY - uses: actions/upload-artifact@v4 if: ${{ failure() }} with: