@@ -238,8 +238,33 @@ jobs:
238238 TEST_FILTER : ${{ inputs.suite_to_run == 'proxy_smoke' && 'Status_feature' || inputs.suite_to_run }}
239239 run : poetry run pytest "$TEST_PATH" -m "$TEST_FILTER" --junitxml=output/test-results.xml --alluredir=output/allure-results
240240
241- - uses : dorny/test-reporter@b082adf0eced0765477756c2a610396589b8c637
241+ - name : Upload e2e automation test artifact
242+ uses : actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f
242243 if : always()
244+ with :
245+ name : ${{ env.ENVIRONMENT }}-${{ env.SUB_ENVIRONMENT }}-${{ env.APIGEE_ENVIRONMENT }}-e2e-test-output
246+ path : tests/e2e_automation/output
247+
248+ publish-test-report :
249+ permissions :
250+ id-token : write
251+ checks : write
252+ contents : write
253+ runs-on : ubuntu-latest
254+ needs : [e2e-automation-tests]
255+ if : always()
256+ environment : ${{ inputs.apigee_environment }}
257+
258+ steps :
259+ - uses : actions/checkout@0c366fd6a839edf440554fa01a7085ccba70ac98
260+
261+ - name : Download e2e automation test artifact
262+ uses : actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131
263+ with :
264+ name : ${{ env.ENVIRONMENT }}-${{ env.SUB_ENVIRONMENT }}-${{ env.APIGEE_ENVIRONMENT }}-e2e-test-output
265+ path : tests/e2e_automation/output
266+
267+ - uses : dorny/test-reporter@b082adf0eced0765477756c2a610396589b8c637
243268 with :
244269 name : BDD Test Summary
245270 path : " **/output/test-results.xml"
@@ -248,14 +273,14 @@ jobs:
248273
249274 - name : Load test report history
250275 uses : actions/checkout@0c366fd6a839edf440554fa01a7085ccba70ac98
251- if : always()
276+ if : github.event_name == 'workflow_dispatch'
252277 continue-on-error : true
253278 with :
254279 ref : gh-pages
255280 path : gh-pages
256281
257282 - name : Build Allure report
258- if : always()
283+ if : github.event_name == 'workflow_dispatch'
259284 uses : simple-elf/allure-report-action@53ebb757a2097edc77c53ecef4d454fc2f2f774c
260285 with :
261286 allure_results : tests/e2e_automation/output/allure-results
@@ -264,15 +289,15 @@ jobs:
264289 allure_history : allure-history
265290
266291 - name : Publish Allure report to GitHub Pages
267- if : always()
292+ if : github.event_name == 'workflow_dispatch'
268293 uses : peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e
269294 with :
270295 github_token : ${{ secrets.GITHUB_TOKEN }}
271296 publish_branch : gh-pages
272297 publish_dir : allure-history
273298
274299 - name : Add link to Allure report
275- if : always()
300+ if : github.event_name == 'workflow_dispatch'
276301 uses : actions/github-script@v8
277302 with :
278303 script : |
0 commit comments