mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-22 19:50:36 +00:00
feat(ci): hive xunit output parse (#4945)
This commit is contained in:
parent
7a2e7e8c06
commit
8b475564d9
17
.github/workflows/ci.yml
vendored
17
.github/workflows/ci.yml
vendored
@ -148,20 +148,5 @@ jobs:
|
||||
uses: actions/upload-artifact@v3
|
||||
if: always()
|
||||
with:
|
||||
name: hive-ci-output
|
||||
name: test-results
|
||||
path: results/*.xml
|
||||
|
||||
event_file:
|
||||
needs:
|
||||
- tests
|
||||
- tests-windows
|
||||
- docker
|
||||
name: archive event file
|
||||
runs-on: ubuntu-latest
|
||||
if: ${{ github.event_name == 'push' || !github.event.pull_request.draft }}
|
||||
steps:
|
||||
- name: upload
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: event file
|
||||
path: ${{ github.event_path }}
|
||||
|
27
.github/workflows/hive-results.yml
vendored
27
.github/workflows/hive-results.yml
vendored
@ -18,28 +18,13 @@ jobs:
|
||||
actions: read
|
||||
|
||||
steps:
|
||||
- name: download and extract artifacts
|
||||
env:
|
||||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
||||
run: |
|
||||
mkdir -p artifacts && cd artifacts
|
||||
|
||||
artifacts_url=${{ github.event.workflow_run.artifacts_url }}
|
||||
|
||||
gh api "$artifacts_url" -q '.artifacts[] | [.name, .archive_download_url] | @tsv' | while read artifact
|
||||
do
|
||||
IFS=$'\t' read name url <<< "$artifact"
|
||||
gh api $url > "$name.zip"
|
||||
unzip -d "$name" "$name.zip"
|
||||
done
|
||||
|
||||
- name: publish hive test results
|
||||
uses: EnricoMi/publish-unit-test-result-action@v1
|
||||
- name: parse hive results
|
||||
uses: phoenix-actions/test-reporting@v8
|
||||
with:
|
||||
commit: ${{ github.event.workflow_run.head_sha }}
|
||||
event_file: artifacts/event.json
|
||||
event_name: ${{ github.event.workflow_run.event }}
|
||||
files: "artifacts/**/*.xml"
|
||||
artifact: test-results
|
||||
name: Tests
|
||||
path: '*.xml'
|
||||
reporter: java-junit
|
||||
|
||||
- name: set badge color
|
||||
shell: bash
|
||||
|
Loading…
Reference in New Issue
Block a user