🧪 Use the unified test reporting action (#16168)

This commit is contained in:
🇺🇦 Sviatoslav Sydorenko (Святослав Сидоренко)
2026-02-09 15:54:04 +01:00
committed by GitHub
parent 99511efe81
commit fc0a4cddce

View File

@@ -112,25 +112,27 @@ jobs:
path: reports/coverage.xml path: reports/coverage.xml
retention-days: 5 retention-days: 5
- name: Upload awx jUnit test reports - name: >-
Upload ${{
matrix.tests.coverage-upload-name || 'awx'
}} jUnit test reports to the unified dashboard
if: >- if: >-
!cancelled() !cancelled()
&& steps.make-run.outputs.test-result-files != '' && steps.make-run.outputs.test-result-files != ''
&& github.event_name == 'push' && github.event_name == 'push'
&& env.UPSTREAM_REPOSITORY_ID == github.repository_id && env.UPSTREAM_REPOSITORY_ID == github.repository_id
&& github.ref_name == github.event.repository.default_branch && github.ref_name == github.event.repository.default_branch
run: | uses: ansible/gh-action-record-test-results@cd5956ead39ec66351d0779470c8cff9638dd2b8
for junit_file in $(echo '${{ steps.make-run.outputs.test-result-files }}' | sed 's/,/ /') with:
do aggregation-server-url: ${{ vars.PDE_ORG_RESULTS_AGGREGATOR_UPLOAD_URL }}
curl \ http-auth-password: >-
-v \ ${{ secrets.PDE_ORG_RESULTS_UPLOAD_PASSWORD }}
--user "${{ vars.PDE_ORG_RESULTS_AGGREGATOR_UPLOAD_USER }}:${{ secrets.PDE_ORG_RESULTS_UPLOAD_PASSWORD }}" \ http-auth-username: >-
--form "xunit_xml=@${junit_file}" \ ${{ vars.PDE_ORG_RESULTS_AGGREGATOR_UPLOAD_USER }}
--form "component_name=${{ matrix.tests.coverage-upload-name || 'awx' }}" \ project-component-name: >-
--form "git_commit_sha=${{ github.sha }}" \ ${{ matrix.tests.coverage-upload-name || 'awx' }}
--form "git_repository_url=https://github.com/${{ github.repository }}" \ test-result-files: >-
"${{ vars.PDE_ORG_RESULTS_AGGREGATOR_UPLOAD_URL }}/api/results/upload/" ${{ steps.make-run.outputs.test-result-files }}
done
dev-env: dev-env:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@@ -294,18 +296,16 @@ jobs:
&& github.event_name == 'push' && github.event_name == 'push'
&& env.UPSTREAM_REPOSITORY_ID == github.repository_id && env.UPSTREAM_REPOSITORY_ID == github.repository_id
&& github.ref_name == github.event.repository.default_branch && github.ref_name == github.event.repository.default_branch
run: | uses: ansible/gh-action-record-test-results@cd5956ead39ec66351d0779470c8cff9638dd2b8
for junit_file in $(echo '${{ steps.make-run.outputs.test-result-files }}' | sed 's/,/ /') with:
do aggregation-server-url: ${{ vars.PDE_ORG_RESULTS_AGGREGATOR_UPLOAD_URL }}
curl \ http-auth-password: >-
-v \ ${{ secrets.PDE_ORG_RESULTS_UPLOAD_PASSWORD }}
--user "${{ vars.PDE_ORG_RESULTS_AGGREGATOR_UPLOAD_USER }}:${{ secrets.PDE_ORG_RESULTS_UPLOAD_PASSWORD }}" \ http-auth-username: >-
--form "xunit_xml=@${junit_file}" \ ${{ vars.PDE_ORG_RESULTS_AGGREGATOR_UPLOAD_USER }}
--form "component_name=awx" \ project-component-name: awx
--form "git_commit_sha=${{ github.sha }}" \ test-result-files: >-
--form "git_repository_url=https://github.com/${{ github.repository }}" \ ${{ steps.make-run.outputs.test-result-files }}
"${{ vars.PDE_ORG_RESULTS_AGGREGATOR_UPLOAD_URL }}/api/results/upload/"
done
collection-integration: collection-integration:
name: awx_collection integration name: awx_collection integration