Skip to content

Comments

ci(commerce): Build @daffodil/commerce schematics#4342

Open
joannalauu wants to merge 5 commits intodevelopfrom
ci/commerce-test
Open

ci(commerce): Build @daffodil/commerce schematics#4342
joannalauu wants to merge 5 commits intodevelopfrom
ci/commerce-test

Conversation

@joannalauu
Copy link
Contributor

@joannalauu joannalauu commented Feb 23, 2026

PR Checklist

  • Commit message follows our contributing guidelines
  • Tests added/updated (for bug fixes/features)
  • Documentation added/updated (for bug fixes/features)

PR Type

  • Bug fix
  • Feature
  • Style update
  • Refactor
  • Test
  • Build
  • CI
  • Docs
  • Performance
  • Other (please describe)

Current behavior

Fixes: #4253

New behavior

Builds the following commerce schematic configurations:

  • driver=demo, standalone, app.config.ts
  • driver=in-memory, standalone, app.config.ts
  • driver=magento, standalone, app.config.ts
  • driver=shopify, standalone, app.config.ts
  • driver=demo, skip-package-json, standalone, app.config.ts
  • driver=demo, module-based, app.config.ts
  • driver=demo, standalone, main.ts fallback

Breaking change?

  • Yes
  • No

Additional context

@joannalauu joannalauu requested a review from a team as a code owner February 23, 2026 03:22
@joannalauu joannalauu marked this pull request as draft February 23, 2026 03:22
@joannalauu joannalauu marked this pull request as ready for review February 23, 2026 03:41
@joannalauu joannalauu changed the title ci: Build @daffodil/commerce schematics ci(commerce): Build @daffodil/commerce schematics Feb 23, 2026
Comment on lines +162 to +170
# Driver: demo, standalone, app.config.ts
desc="driver=demo (standalone, app.config.ts)"
copy_base_app "$STANDALONE_APP_DIR" "$WORK_DIR/case-1"
raise_budget
if run_ng_add "demo" && npx ng build 2>&1; then
report_result "$case_num" "$desc" "pass"
else
report_result "$case_num" "$desc" "fail"
fi
Copy link
Member

Choose a reason for hiding this comment

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

Each case data should be in some kind of serializable format, e.g. JSON, so that cases can easily be added and changed without modifying this file.

This will require some abstraction around what you're doing in case 7. Maybe the JSON can reference some override files that this script will know how to use. Or we have a few hardcoded starting points that the script can use.

Hopefully that makes sense. The goal is that this just becomes a for loop and the switch case is removed.

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.

ci: test cases for @daffodil/commerce that validate generated app

2 participants