π Comment PR test report #305
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: "π Comment PR test report" | |
on: | |
workflow_run: | |
workflows: ["β test"] | |
types: | |
- completed | |
jobs: | |
cypress-report: | |
runs-on: ubuntu-latest | |
steps: | |
- name: β¬ Retrieve mocha reports | |
uses: dawidd6/action-download-artifact@v2 | |
with: | |
name: cypress-report | |
workflow_conclusion: completed | |
run_id: ${{ github.event.workflow_run.id }} | |
path: .reports | |
## XXXvlab: waiting for https://github.com/actions/download-artifact/issues/172 | |
# - name: β¬ Retrieve mocha reports | |
# uses: actions/download-artifact@v3 | |
# with: | |
# name: mocha-report | |
# path: .reports | |
- name: π Get PR number | |
id: report | |
run: | | |
cd .reports | |
echo "pr=$(cat pr)" >> $GITHUB_OUTPUT | |
- name: π Report to PR | |
uses: vaab/cypress-report-action@v2 | |
with: | |
title: "### :evergreen_tree: test report" | |
pr: ${{ steps.report.outputs.pr }} | |
token: ${{ secrets.GITHUB_TOKEN }} | |
pathname: .reports/report-merge.json |