[pull] develop from ehrbase:develop #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Collect Robot Results" | |
# we have multiple workflows - this helps to distinguish for them | |
run-name: "${{ github.event.workflow_run.head_branch }} - Report Robot Results" | |
on: | |
workflow_run: | |
workflows: ["Build & Test"] # runs after build and test workflow | |
types: | |
- completed | |
permissions: | |
contents: write | |
# | |
# see https://github.com/dorny/test-reporter?tab=readme-ov-file#recommended-setup-for-public-repositories | |
# | |
jobs: | |
# | |
# Collect and upload sonar report with coverage generated by the Build & Test workflow | |
# | |
robot-report: | |
name: Robot-Report | |
runs-on: ubuntu-latest | |
if: github.event.workflow_run.conclusion == 'success' | |
steps: | |
- name: DEBUG | |
env: | |
GITHUB_EVENT_CONTEXT: ${{ toJson(github.event) }} | |
run: | | |
echo "$GITHUB_EVENT_CONTEXT" | |
# Download jacoco overall coverage from build & test output | |
- name: Download - Robot Results | |
uses: actions/download-artifact@v4 | |
with: | |
github-token: ${{ secrets.BOT_ACCESS_TOKEN }} | |
run-id: ${{ github.event.workflow_run.id }} # download artifacts from build and test workflow | |
pattern: robot-report-final # uses artifact of build and test workflow | |
merge-multiple: true | |
path: ${{ github.workspace }}/tests/report | |
- name: DEBUG - DIR | |
run: ls -R ${{ github.workspace }} | |
- name: Github - Send Robot Report to PR | |
# Dependabot has not enough rights to add the report to the PR. | |
uses: joonvena/[email protected] | |
with: | |
gh_access_token: ${{ secrets.BOT_ACCESS_TOKEN }} | |
# pull_request_id: ${{ github.event.workflow_run.pull_requests[0].id }} | |
sha: ${{ github.event.workflow_run.head_sha }} | |
report_path: ./tests/report | |
summary: true | |
only_summary: false | |
show_passed_tests: false |