@@ -314,6 +314,13 @@ jobs:
314314 path : ~/.cache/go-build
315315 key : go-${{ runner.os }}${{ runner.arch }}-build-${{ env.COMMIT }}
316316
317+ - name : Get job ID
318+ id : get_job_id
319+ uses : ./.github/actions/get-job-id
320+ with :
321+ job_name : Unit test
322+ run_id : ${{ github.run_id }}
323+
317324 - name : Run unit tests
318325 timeout-minutes : 20
319326 run : TEST_TIMEOUT=15m ./develop/github/monitor_test.sh make unit-test-coverage
@@ -328,15 +335,13 @@ jobs:
328335 [ "$(find .testoutput -maxdepth 1 -name 'junit.*.xml' | wc -l)" -lt "$MAX_TEST_ATTEMPTS" ] &&
329336 CRASH_REPORT_NAME="$GITHUB_JOB" make report-test-crash
330337
331- - name : Generate test summary
332- uses : mikepenz/action-junit-report@v6
338+ - name : Write test summary
333339 if : ${{ !cancelled() }}
334- with :
335- report_paths : ./.testoutput/junit.*.xml
336- detailed_summary : true
337- check_annotations : false
338- annotate_only : true
339- skip_annotations : true
340+ run : |
341+ summary="$(make -s write-test-summary)"
342+ if [ -n "$summary" ]; then
343+ printf '%s\n' "$summary" > "$GITHUB_STEP_SUMMARY"
344+ fi
340345
341346 - name : Upload code coverage to Codecov
342347 uses : codecov/codecov-action@v5
@@ -354,13 +359,6 @@ jobs:
354359 flags : unit-test
355360 report_type : test_results
356361
357- - name : Get job ID
358- id : get_job_id
359- uses : ./.github/actions/get-job-id
360- with :
361- job_name : Unit test
362- run_id : ${{ github.run_id }}
363-
364362 - name : Upload test results to GitHub
365363 # Can't pin to major because the action linter doesn't recognize the include-hidden-files flag.
366364 uses : actions/upload-artifact@v6
@@ -414,6 +412,13 @@ jobs:
414412 # shellcheck disable=SC2046
415413 docker compose -f ${{ env.DOCKER_COMPOSE_FILE }} up --wait $(docker compose -f ${{ env.DOCKER_COMPOSE_FILE }} ps --services)
416414
415+ - name : Get job ID
416+ id : get_job_id
417+ uses : ./.github/actions/get-job-id
418+ with :
419+ job_name : Integration test
420+ run_id : ${{ github.run_id }}
421+
417422 - name : Run integration test
418423 timeout-minutes : 15
419424 run : ./develop/github/monitor_test.sh make integration-test-coverage
@@ -428,15 +433,13 @@ jobs:
428433 [ "$(find .testoutput -maxdepth 1 -name 'junit.*.xml' | wc -l)" -lt "$MAX_TEST_ATTEMPTS" ] &&
429434 CRASH_REPORT_NAME="$GITHUB_JOB" make report-test-crash
430435
431- - name : Generate test summary
432- uses : mikepenz/action-junit-report@v6
436+ - name : Write test summary
433437 if : ${{ !cancelled() }}
434- with :
435- report_paths : ./.testoutput/junit.*.xml
436- detailed_summary : true
437- check_annotations : false
438- annotate_only : true
439- skip_annotations : true
438+ run : |
439+ summary="$(make -s write-test-summary)"
440+ if [ -n "$summary" ]; then
441+ printf '%s\n' "$summary" > "$GITHUB_STEP_SUMMARY"
442+ fi
440443
441444 - name : Upload code coverage to Codecov
442445 uses : codecov/codecov-action@v5
@@ -454,13 +457,6 @@ jobs:
454457 flags : integration-test
455458 report_type : test_results
456459
457- - name : Get job ID
458- id : get_job_id
459- uses : ./.github/actions/get-job-id
460- with :
461- job_name : Integration test
462- run_id : ${{ github.run_id }}
463-
464460 - name : Upload test results to GitHub
465461 # Can't pin to major because the action linter doesn't recognize the include-hidden-files flag.
466462 uses : actions/upload-artifact@v6
@@ -567,15 +563,13 @@ jobs:
567563 [ "$(find .testoutput -maxdepth 1 -name 'junit.*.xml' | wc -l)" -lt "$MAX_TEST_ATTEMPTS" ] &&
568564 CRASH_REPORT_NAME="$GITHUB_JOB" make report-test-crash
569565
570- - name : Generate test summary
571- uses : mikepenz/action-junit-report@v6
566+ - name : Write test summary
572567 if : ${{ !cancelled() }}
573- with :
574- report_paths : ./.testoutput/junit.*.xml
575- detailed_summary : true
576- check_annotations : false
577- annotate_only : true
578- skip_annotations : true
568+ run : |
569+ summary="$(make -s write-test-summary)"
570+ if [ -n "$summary" ]; then
571+ printf '%s\n' "$summary" > "$GITHUB_STEP_SUMMARY"
572+ fi
579573
580574 - name : Upload code coverage to Codecov
581575 uses : codecov/codecov-action@v5
0 commit comments