test-results.yml 1001 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. name: Test Results
  2. on:
  3. workflow_run:
  4. workflows: ["Tests"]
  5. types:
  6. - completed
  7. permissions: {}
  8. jobs:
  9. test-results:
  10. name: Test Results
  11. runs-on: ubuntu-latest
  12. if: github.event.workflow_run.conclusion != 'skipped'
  13. permissions:
  14. checks: write
  15. # needed unless run with comment_mode: off
  16. pull-requests: write
  17. # required by download step to access artifacts API
  18. actions: read
  19. steps:
  20. - name: Download and Extract Artifacts
  21. uses: dawidd6/action-download-artifact@20319c5641d495c8a52e688b7dc5fada6c3a9fbc
  22. with:
  23. run_id: ${{ github.event.workflow_run.id }}
  24. path: artifacts
  25. - name: Publish Test Results
  26. uses: EnricoMi/publish-unit-test-result-action@v2
  27. with:
  28. commit: ${{ github.event.workflow_run.head_sha }}
  29. event_file: artifacts/Event File/event.json
  30. event_name: ${{ github.event.workflow_run.event }}
  31. files: "artifacts/**/*.xml"