diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 06bd26fbf3d0..6da76033b53d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -95,6 +95,26 @@ jobs: }} token: ${{ secrets.CODECOV_TOKEN }} + - name: Upload awx jUnit test reports + if: >- + !cancelled() + && steps.make-run.outputs.test-result-files != '' + && github.event_name == 'push' + && env.UPSTREAM_REPOSITORY_ID == github.repository_id + && github.ref_name == github.event.repository.default_branch + run: | + for junit_file in $(echo '${{ steps.make-run.outputs.test-result-files }}' | sed 's/,/ /') + do + curl \ + -v \ + --user "${{ vars.PDE_ORG_RESULTS_AGGREGATOR_UPLOAD_USER }}:${{ secrets.PDE_ORG_RESULTS_UPLOAD_PASSWORD }}" + --form "xunit_xml=@${junit_file}" \ + --form "component_name=awx" + --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/" + done + dev-env: runs-on: ubuntu-latest timeout-minutes: 60