Add reporter for all tests (#9395)

This commit is contained in:
Ricardo Katz 2022-12-11 21:33:19 -03:00 committed by GitHub
parent 2cb3ce5db6
commit 7e7d0e8699
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 5 deletions

View file

@ -13,7 +13,7 @@ on:
inputs: inputs:
run_e2e: run_e2e:
description: 'Force e2e to run' description: 'Force e2e to run'
required: true required: false
type: boolean type: boolean
permissions: permissions:
@ -73,6 +73,9 @@ jobs:
name: Build name: Build
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: changes needs: changes
if: |
(needs.changes.outputs.go == 'true') || (needs.changes.outputs.charts == 'true') || ${{ inputs.run_e2e }}
steps: steps:
@ -268,10 +271,10 @@ jobs:
make kind-e2e-test make kind-e2e-test
- name: Uplaod e2e junit-reports - name: Uplaod e2e junit-reports
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v3
if: success() || failure() if: success() || failure()
with: with:
name: e2e-test-reports name: e2e-test-reports-${{ matrix.k8s }}
path: 'test/junitreports/report*.xml' path: 'test/junitreports/report*.xml'
kubernetes-chroot: kubernetes-chroot:
@ -331,6 +334,13 @@ jobs:
kind get kubeconfig > $HOME/.kube/kind-config-kind kind get kubeconfig > $HOME/.kube/kind-config-kind
make kind-e2e-test make kind-e2e-test
- name: Uplaod e2e junit-reports
uses: actions/upload-artifact@v3
if: success() || failure()
with:
name: e2e-test-reports-chroot-${{ matrix.k8s }}
path: 'test/junitreports/report*.xml'
test-image-build: test-image-build:
permissions: permissions:

View file

@ -10,7 +10,7 @@ jobs:
steps: steps:
- uses: dorny/test-reporter@v1 - uses: dorny/test-reporter@v1
with: with:
artifact: e2e-test-reports artifact: /e2e-test-reports-(.*)/
name: JEST Tests # Name of the check run which will be created name: JEST Tests $1 # Name of the check run which will be created
path: 'report*.xml' # Path to test results (inside artifact .zip) path: 'report*.xml' # Path to test results (inside artifact .zip)
reporter: jest-junit # Format of test results reporter: jest-junit # Format of test results