86852c57af
### What changes were proposed in this pull request?
This PR proposes to remove the usage of my own forks and use the original plugins in GitHub Actions testing report.
SPARK-32357 introduced the GitHub Actions test reporting by leveraging two plugins:
- [ScaCap/action-surefire-report](https://github.com/ScaCap/action-surefire-report)
- [dawidd6/action-download-artifact](https://github.com/dawidd6/action-download-artifact)
In order to make it working, it had to fork two repositories with custom fixes:
- HyukjinKwon/action-surefire-reportc96094c
- f86c565d52
The two custom fixes are thankfully merged at https://github.com/ScaCap/action-surefire-report/pull/14 and https://github.com/dawidd6/action-download-artifact/pull/24, and they released new ones to use at [ScaCap/action-surefire-report/commits/v1](https://github.com/ScaCap/action-surefire-report/commits/v1) and [dawidd6/action-download-artifact/commits/v2](https://github.com/dawidd6/action-download-artifact/commits/v2) - thanks jmisur and dawidd6 again.
### Why are the changes needed?
To avoid relying on forks and code duplications.
### Does this PR introduce _any_ user-facing change?
No, dev-only.
### How was this patch tested?
Logically there is no diff. I tested it at https://github.com/HyukjinKwon/spark/runs/992824229 for doubly sure.
NOTE that this PR cannot be tested here within the workflow triggered by this PR without merging the changes in `test_report.yml` into the master.
Closes #29449 from HyukjinKwon/SPARK-32606-SPARK-32605.
Authored-by: HyukjinKwon <gurwls223@apache.org>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
25 lines
746 B
YAML
25 lines
746 B
YAML
name: Report test results
|
|
on:
|
|
workflow_run:
|
|
workflows: ["Build and test"]
|
|
types:
|
|
- completed
|
|
|
|
jobs:
|
|
test_report:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Download test results to report
|
|
uses: dawidd6/action-download-artifact@v2
|
|
with:
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
workflow: ${{ github.event.workflow_run.workflow_id }}
|
|
commit: ${{ github.event.workflow_run.head_commit.id }}
|
|
- name: Publish test report
|
|
uses: scacap/action-surefire-report@v1
|
|
with:
|
|
check_name: Report test results
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
report_paths: "**/target/test-reports/*.xml"
|
|
commit: ${{ github.event.workflow_run.head_commit.id }}
|