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

View file

@ -10,7 +10,7 @@ jobs:
steps:
- uses: dorny/test-reporter@v1
with:
artifact: e2e-test-reports
name: JEST Tests # Name of the check run which will be created
artifact: /e2e-test-reports-(.*)/
name: JEST Tests $1 # 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