Skip to content

Commit

Permalink
update(ci): fix report overriding comments
Browse files Browse the repository at this point in the history
  • Loading branch information
luisecm committed Oct 30, 2024
1 parent a88ebb0 commit 536e466
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions .github/workflows/automated-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,8 @@ jobs:
issues: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
outputs:
playwright_report_url: ${{ steps.comment.outputs.playwright_report_url }}
steps:
- uses: actions/[email protected]
with:
Expand Down Expand Up @@ -153,14 +155,9 @@ jobs:
publish_dir: ./playwright-report
destination_dir: ${{ steps.timestampidone.outputs.timestamp }}

- name: Comment PR with Playwright test results
if: always() && github.event_name == 'pull_request'
uses: mshick/[email protected]
with:
message: |
Automated tests execution is complete! You can find the Playwright test report [here](https://satellite-im.github.io/test-reports/${{ steps.timestampidone.outputs.timestamp }}/)
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Set Playwright report URL output
id: comment
run: echo "playwright_report_url=https://satellite-im.github.io/test-reports/${{ steps.timestampidone.outputs.timestamp }}/" >> "$GITHUB_OUTPUT"

publish-allure-report:
if: always()
Expand Down Expand Up @@ -227,7 +224,7 @@ jobs:
uses: mshick/[email protected]
with:
message: |
Automated tests execution is complete! You can find the Allure Test Report [here](https://satellite-im.github.io/test-reports/${{ github.run_number }})
Automated tests execution is complete! You can find the Playwright test report [here](${{ needs.publish-playwright-report.outputs.playwright_report_url }}) and the Allure Test Report [here](https://satellite-im.github.io/test-reports/${{ github.run_number }})
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand Down

0 comments on commit 536e466

Please sign in to comment.