summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorjessicamack <jmack@redhat.com>2024-09-17 21:23:11 +0200
committerGitHub <noreply@github.com>2024-09-17 21:23:11 +0200
commiteccc32cbadcbf6d7c43aff4625ac4bda3d6fd167 (patch)
tree498a94ae2bf3317c2e036757c45672676291c005 /.github
parent🧪 Upload coverage from the rest of CI jobs (#15526) (diff)
downloadawx-eccc32cbadcbf6d7c43aff4625ac4bda3d6fd167.tar.xz
awx-eccc32cbadcbf6d7c43aff4625ac4bda3d6fd167.zip
Upload API unit test results to dashboard (#15532)
* update ci to upload test report * Update .github/workflows/ci.yml Co-authored-by: Sviatoslav Sydorenko (Святослав Сидоренко) <wk.cvs.github@sydorenko.org.ua> * Update .github/workflows/ci.yml Co-authored-by: Sviatoslav Sydorenko (Святослав Сидоренко) <wk.cvs.github@sydorenko.org.ua> * Update .github/workflows/ci.yml Co-authored-by: Sviatoslav Sydorenko (Святослав Сидоренко) <wk.cvs.github@sydorenko.org.ua> * Update .github/workflows/ci.yml Co-authored-by: Sviatoslav Sydorenko (Святослав Сидоренко) <wk.cvs.github@sydorenko.org.ua> * Update .github/workflows/ci.yml Co-authored-by: Sviatoslav Sydorenko (Святослав Сидоренко) <wk.cvs.github@sydorenko.org.ua> --------- Co-authored-by: Sviatoslav Sydorenko (Святослав Сидоренко) <wk.cvs.github@sydorenko.org.ua>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/ci.yml20
1 files changed, 20 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 06bd26fbf3..6da76033b5 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