integrated junit-reports with ghactions (#9361)
This commit is contained in:
parent
f9cce5a4ed
commit
ad4655a568
3 changed files with 23 additions and 0 deletions
6
.github/workflows/ci.yaml
vendored
6
.github/workflows/ci.yaml
vendored
|
@ -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
16
.github/workflows/junit-reports.yaml
vendored
Normal 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
|
|
@ -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'
|
||||
#
|
||||
|
||||
|
|
Loading…
Reference in a new issue