Skip to content

Commit

Permalink
ci: check downloaded failure reason
Browse files Browse the repository at this point in the history
  • Loading branch information
antonbsa committed Sep 11, 2023
1 parent a483d2d commit 27cb86c
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/automated-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -364,15 +364,31 @@ jobs:
- name: Install dependencies
working-directory: ./bigbluebutton-tests/playwright
run: npm ci
- if: needs.install-and-run-tests.result == 'failure'
id: pr-data-artifact
uses: actions/download-artifact@v3
with:
name: pr-comment-data
- if: steps.pr-data-artifact.outcome == 'success'
id: failure-check
run: |
if [ -f "./pr-comment-data/failure-reason" ]; then
echo "isAutomatedTestFailure=false" >> $GITHUB_OUTPUT
else
echo "isAutomatedTestFailure=true" >> $GITHUB_OUTPUT
fi
- name: Download all blob reports from GitHub Actions Artifacts
if: needs.install-and-run-tests.result == 'skipped' || !steps.failure-check.outputs.isAutomatedTestFailure
uses: actions/download-artifact@v3
with:
name: all-blob-reports
path: bigbluebutton-tests/playwright/all-blob-reports
- name: Merge into HTML Report
if: needs.install-and-run-tests.result == 'skipped' || !steps.failure-check.outputs.isAutomatedTestFailure
working-directory: ./bigbluebutton-tests/playwright
run: npx playwright merge-reports --reporter html ./all-blob-reports
- name: Upload HTML tests report
if: needs.install-and-run-tests.result == 'skipped' || !steps.failure-check.outputs.isAutomatedTestFailure
uses: actions/upload-artifact@v3
with:
name: tests-report
Expand Down

0 comments on commit 27cb86c

Please sign in to comment.