Skip to content

Commit

Permalink
Upload JUnit test reports to dashboard (#1150)
Browse files Browse the repository at this point in the history
  • Loading branch information
jessicamack committed Sep 26, 2024
1 parent 25566a5 commit 32ab948
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/test-reporting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,20 @@ jobs:
- name: Run receptor tests
run: go test -v 2>&1 ./... | go-junit-report > report.xml

- name: Upload test results to dashboard
if: >-
!cancelled()
&& github.event_name == 'push'
&& github.repository == 'ansible/receptor'
&& github.ref_name == github.event.repository.default_branch
run: >-
curl -v --user "${{ vars.PDE_ORG_RESULTS_AGGREGATOR_UPLOAD_USER }}:${{ secrets.PDE_ORG_RESULTS_UPLOAD_PASSWORD }}"
--form "xunit_xml=@report.xml"
--form "component_name=receptor"
--form "git_commit_sha=${{ github.sha }}"
--form "git_repository_url=https://github.com/${{ github.repository }}"
"${{ vars.PDE_ORG_RESULTS_AGGREGATOR_UPLOAD_URL }}/api/results/upload/"
- name: get k8s logs
if: ${{ failure() }}
run: .github/workflows/artifact-k8s-logs.sh
Expand Down

0 comments on commit 32ab948

Please sign in to comment.