integrated junit-reports with ghactions (#9361)

This commit is contained in:
Long Wu Yuan 2022-12-07 08:54:37 +05:30 committed by GitHub
parent f9cce5a4ed
commit ad4655a568
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 23 additions and 0 deletions

View file

@ -267,6 +267,12 @@ jobs:
kind get kubeconfig > $HOME/.kube/kind-config-kind
make kind-e2e-test
- name: Uplaod e2e junit-reports
uses: actions/upload-artifact@v2
if: success() || failure()
with:
name: e2e-test-reports
path: 'test/junitreports/report*.xml'
kubernetes-chroot:
name: Kubernetes chroot

16
.github/workflows/junit-reports.yaml vendored Normal file
View file

@ -0,0 +1,16 @@
name: 'E2E Test Report'
on:
workflow_run:
workflows: ['CI'] # runs after CI workflow
types:
- completed
jobs:
report:
runs-on: ubuntu-latest
steps:
- uses: dorny/test-reporter@v1
with:
artifact: e2e-test-reports
name: JEST Tests # Name of the check run which will be created
path: 'report*.xml' # Path to test results (inside artifact .zip)
reporter: jest-junit # Format of test results

View file

@ -99,6 +99,7 @@ cd $reportsDir
#for cmName in `k get cm -l junitreport=true -o json | jq '.items[].binaryData | keys[]' | tr '\"' ' '`
#do
#
#
# kubectl get cm -l junitreport=true -o json | jq -r '[.items[].binaryData | to_entries[] | {"key": .key, "value": .value }] | from_entries'
#