Skip to content

Add Formplayer bundle to the CI/CD pipeline #233

@Bahati308

Description

@Bahati308

Component

  • formulus (React Native mobile app)
  • formulus-formplayer (React web app)
  • synkronus (Go backend server)
  • synkronus-cli (Command-line utility)
  • Documentation
  • Other (please specify)

Issue Description

Problem: Manual asset synchronization between formulus-formplayer and formulus creates workflow bottlenecks and potential version conflicts.

Current Process Issues:

  • Changes to formulus-formplayer require manual local asset building
  • Separate PR must be created to copy built assets to formulus
  • Concurrent PRs can cause asset version conflicts and confusion
  • Manual process is error-prone and time-consuming

Desired Solution:
Automate the build and persistence of formplayer assets in the formulus React Native app within our monorepo structure.

Requirements:

  1. When formulus-formplayer changes are merged to dev/main, automatically:

    • Build the formplayer assets (npm run build:rn)
    • Clean existing assets in formulus
    • Copy newly built assets to formulus
    • Commit the updated assets to the repository
  2. Ensure formulus always contains the latest built assets from formplayer

  3. Eliminate need for manual asset synchronization PRs

  4. Maintain clear git history of asset updates

Acceptance Criteria:

  • Assets are automatically built and committed when formplayer changes merge
  • No manual intervention required for asset updates
  • Android builds use latest committed assets
  • Clear commit messages for asset updates
  • Workflow handles merge conflicts gracefully

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestformplayerIssues related to the FormPlayer React applicationinfrastructureIssues related to CI/CD, Docker, deployment, or infrastructure setup

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions