-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upload JUnit test reports to dashboard (#1150)
- Loading branch information
1 parent
25566a5
commit 32ab948
Showing
1 changed file
with
14 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 "[email protected]" | ||
--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 | ||
|