From 47ecc789799ba9e4160c478ad19bdfc5acf4c761 Mon Sep 17 00:00:00 2001 From: Jonah Graham Date: Wed, 15 Jan 2025 15:35:33 -0500 Subject: [PATCH] Use event file to line up PR build and reporting (#1026) Part of #1002 --- .github/workflows/build-test.yml | 5 +++++ .github/workflows/report.yml | 2 ++ 2 files changed, 7 insertions(+) diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml index 068ed2d7a3e..fd1e2dacc84 100644 --- a/.github/workflows/build-test.yml +++ b/.github/workflows/build-test.yml @@ -58,12 +58,17 @@ jobs: with: name: Code Cleanliness Detailed Logs path: '*.log' + - name: Prepare Test Results for upload + if: (success() || failure()) + run: | + cp ${{ github.event_path }} event.json - name: Upload Test Results uses: actions/upload-artifact@v4 if: success() || failure() with: name: test-results path: | + event.json */*/target/surefire-reports/*.xml terminal/plugins/org.eclipse.tm.terminal.test/target/surefire-reports/*.xml - name: Prepare Docs for upload diff --git a/.github/workflows/report.yml b/.github/workflows/report.yml index 7a345491e3e..1b55231f430 100644 --- a/.github/workflows/report.yml +++ b/.github/workflows/report.yml @@ -26,3 +26,5 @@ jobs: with: commit: ${{ github.event.workflow_run.head_sha }} junit_files: "test-results/**/*.xml" + event_file: event.json + event_name: ${{ github.event.workflow_run.event }}