Add frontend validation checks and conditional build steps in workflows#58
Merged
javidahmed64592 merged 1 commit intomainfrom Mar 7, 2026
Merged
Conversation
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces conditional frontend validation and build steps to the CI and build workflows, making them more flexible for repositories that may not include a frontend directory. It adds a new action to check for the existence of the frontend directory and updates documentation and workflow files to reflect these changes. The workflows now skip frontend jobs if the directory is not present, and the documentation provides clear guidance on these enhancements.
Workflow enhancements for conditional frontend handling:
check-frontend-existsaction (.github/actions/setup/check-frontend-exists/action.yml) that checks for the presence of the<repository name>-frontenddirectory and outputs an existence flag. This enables conditional execution of frontend-related jobs. [1] [2]ci.yml) and build (build.yml) workflows to use the new check and conditionally run frontend validation and build steps only if the frontend directory exists. This includes the newfrontendjob in CI andbuild-frontendjob in build, with downstream jobs depending on the existence flag. [1] [2]Documentation updates:
WORKFLOWS.mdto document the newcheck-frontend-existsaction, its outputs, and usage, as well as the conditional logic in CI and build workflows. [1] [2]frontendandbuild-frontendactions to clarify their new roles and correct repository references. [1] [2] [3] [4]Minor workflow improvements: