-
Notifications
You must be signed in to change notification settings - Fork 374
Add frontend setup composite action to reduce workflow duplication #5805
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
🎭 Playwright Test Results⏰ Completed at: 09/27/2025, 03:22:36 AM UTC 📈 Summary
📊 Test Reports by Browser
🎉 Click on the links above to view detailed test results for each browser configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great step forward🤞🏻
Then later we can see if we can kill a bunch of the code in the other actions.
Only required change is to use the devtools we have in the repo instead of checking out the other one.
- name: Checkout ComfyUI_devtools | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: 'Comfy-Org/ComfyUI_devtools' | ||
path: 'ComfyUI/custom_nodes/ComfyUI_devtools' | ||
ref: ${{ inputs.devtools_ref }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We're not checking out devtools anymore, it's in the monorepo now.
using: 'composite' | ||
steps: | ||
- name: Checkout ComfyUI | ||
uses: actions/checkout@v4 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
question: Are we not able to use v5?
pip install wait-for-it | ||
- name: Build & Install ComfyUI_frontend | ||
shell: bash |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shell: bash |
pnpm build | ||
- name: Start ComfyUI server | ||
shell: bash |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shell: bash |
python-version: '3.10' | ||
|
||
- name: Install Python requirements | ||
shell: bash |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shell: bash |
with: | ||
repository: 'comfyanonymous/ComfyUI' | ||
path: 'ComfyUI' | ||
ref: 'master' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
optional: If you don't set ref
, it'll pick the default branch for you.
Similar to the Playwright composite action, this moves the frontend setup logic from the external Comfy-Org/ComfyUI_frontend_setup_action into a local composite action at .github/actions/setup-frontend. Benefits: - Reduces external dependencies - Allows easier customization and maintenance - Consistent with the Playwright composite action pattern - Provides better control over versioning and updates Updated workflows: - i18n.yaml - i18n-node-defs.yaml - test-browser-exp.yaml The new composite action provides the same functionality as the external action with additional flexibility through configurable inputs for paths, versions, and conditional steps.
Reduced inputs from 9 to 2, matching the original ComfyUI_frontend_setup_action: - extra_server_params: Additional server parameters - devtools_ref: Reference for ComfyUI_devtools Removed unnecessary configurability that added complexity without value. The action now directly mirrors the external action's simplicity.
623434f
to
d00f047
Compare
Summary
.github/actions/setup-frontend
to replace the externalComfy-Org/ComfyUI_frontend_setup_action
Motivation
Similar to the Playwright composite action, this change:
Changes
New composite action:
.github/actions/setup-frontend/action.yml
Direct mirror of the external action with the same 2 inputs:
extra_server_params
: Additional parameters to pass to ComfyUI serverdevtools_ref
: Reference to use for ComfyUI_devtoolsThe action:
Updated workflows:
.github/workflows/i18n.yaml
.github/workflows/i18n-node-defs.yaml
.github/workflows/test-browser-exp.yaml
All workflows now use the local composite action instead of
Comfy-Org/ComfyUI_frontend_setup_action@v3
Test plan
Related PRs
🤖 Generated with Claude Code