test-results.yml 1002 B

123456789101112131415161718192021222324252627282930313233343536373839
  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@b6e2e70617bc3265edd6dab6c906732b2f1ae151
  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"