Skip to content

chore: add workflow to deploy test page for fork prs#4728

Open
amanabiy wants to merge 2 commits into
mainfrom
chore/allow-deploying-test-page-fork-pr
Open

chore: add workflow to deploy test page for fork prs#4728
amanabiy wants to merge 2 commits into
mainfrom
chore/allow-deploying-test-page-fork-pr

Conversation

@amanabiy

Copy link
Copy Markdown
Member

Description

Enables dev page previews for forked pull requests by triggering the reusable deployment workflow after the build completes and deploying the generated dev-pages artifact.

Related: cloudscape-design/actions#122
Similar PR: cloudscape-design/chat-components#146

Related links, issue #, if available: n/a

How has this been tested?

Review checklist

The following items are to be evaluated by the author(s) and the reviewer(s).

Correctness

  • Changes include appropriate documentation updates.
  • Changes are backward-compatible if not indicated, see CONTRIBUTING.md.
  • Changes do not include unsupported browser features, see CONTRIBUTING.md.
  • Changes were manually tested for accessibility, see accessibility guidelines.

Security

Testing

  • Changes are covered with new/existing unit tests?
  • Changes are covered with new/existing integration tests?

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

gethinwebster
gethinwebster previously approved these changes Jul 15, 2026
secrets: inherit
with:
react-version: ${{ matrix.react }}
artifact-path: pages/lib/static-default

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is required to upload the artifacts. so that the Deploy fork preview can read it afterwards when the Build, lint, and test is done. Unlike the other packages workflow, in components the deployment is gated by conditional statement to check if it is fork PR or not, and deploys the page in parallel while building and testing.

@codecov

codecov Bot commented Jul 15, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.60%. Comparing base (169f832) to head (f3ee9b3).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4728   +/-   ##
=======================================
  Coverage   97.60%   97.60%           
=======================================
  Files         950      950           
  Lines       30714    30714           
  Branches    11276    11276           
=======================================
  Hits        29977    29977           
  Misses        690      690           
  Partials       47       47           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

secrets: inherit
with:
artifact-name: dev-pages-react${{ matrix.react }}
deployment-path: pages/lib/static-default

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clean up work. This input is passed but not used in the deploy workflow_call

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants