Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 2 additions & 38 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -323,51 +323,15 @@ jobs:
run: npx playwright merge-reports --reporter html "$RUNNER_TEMP/all-blob-reports"

- name: Upload HTML report artifact
# Keep reports in GitHub when S3 publishing is not configured or the pull request comes from a fork.
if: >-
steps.check-reports.outputs.has_reports == 'true' &&
(
vars.AWS_REGION == '' ||
vars.AWS_BUCKET_NAME == '' ||
(github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository)
)
if: steps.check-reports.outputs.has_reports == 'true'
uses: actions/upload-artifact@v5
with:
name: playwright-html-report
path: playwright-report
retention-days: 7

- name: Configure AWS credentials
if: >-
steps.check-reports.outputs.has_reports == 'true' &&
vars.AWS_REGION != '' &&
vars.AWS_BUCKET_NAME != '' &&
(github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository)
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ${{ vars.AWS_REGION }}

- name: Upload HTML report to S3
# Upload HTML report to S3 only for pull requests from the main repository or for non-pull requests events
if: >-
steps.check-reports.outputs.has_reports == 'true' &&
vars.AWS_REGION != '' &&
vars.AWS_BUCKET_NAME != '' &&
(github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository)
run: |
export "SHORT_SHA=`echo ${GITHUB_SHA} | cut -c1-8`"
aws s3 cp playwright-report/ s3://${{ vars.AWS_BUCKET_NAME }}/report-${SHORT_SHA} --recursive
echo "PLAYWRIGHT_URL=https://${{ vars.AWS_BUCKET_NAME }}.s3.${{ vars.AWS_REGION }}.amazonaws.com/report-${SHORT_SHA}/index.html" >> "$GITHUB_ENV"

- name: Add link to job summary
if: steps.check-reports.outputs.has_reports == 'true'
run: |
echo "### Playwright report" >> $GITHUB_STEP_SUMMARY
if [ -n "${{ env.PLAYWRIGHT_URL }}" ]; then
echo "[View report (S3)](${{ env.PLAYWRIGHT_URL }})" >> $GITHUB_STEP_SUMMARY
else
echo "Download the **playwright-html-report** artifact below to view the report (open \`index.html\` in a browser)." >> $GITHUB_STEP_SUMMARY
fi
echo "[Read about ducks](https://animalkingdom.org/animals/ducks/)" >> $GITHUB_STEP_SUMMARY
echo "Download the **playwright-html-report** artifact below to view the report (open \`index.html\` in a browser)." >> $GITHUB_STEP_SUMMARY
29 changes: 0 additions & 29 deletions .github/workflows/stale-issues.yml

This file was deleted.

Loading