diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index f26a99aac..494477b81 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -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 diff --git a/.github/workflows/junit-reports.yaml b/.github/workflows/junit-reports.yaml new file mode 100644 index 000000000..21f2674a1 --- /dev/null +++ b/.github/workflows/junit-reports.yaml @@ -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 diff --git a/build/run-e2e-suite.sh b/build/run-e2e-suite.sh index ebbac9145..ae38b5fcc 100755 --- a/build/run-e2e-suite.sh +++ b/build/run-e2e-suite.sh @@ -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' #