Skip to content

Commit a27d562

Browse files
authored
Fix verify_components: ignore generated docs stubs (#438)
* Regenerate ruby_ui components after gem bump Run `rails g ruby_ui:component:all --force true` to sync generated components with the updated ruby_ui gem (f882429 → 755b288). * Remove generated ruby_ui/docs stubs that conflict with existing components The docs component stubs (base, component_setup_tabs, etc.) generated by ruby_ui:component:all conflict with the app's existing Components::ComponentSetup namespace, causing a superclass mismatch TypeError. * Fix verify_components: ignore generated docs stubs The ruby_ui generator creates docs component stubs that conflict with the app's existing Components::ComponentSetup namespace (superclass mismatch). Revert those generated files before the git status check.
1 parent f3403ea commit a27d562

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,9 @@ jobs:
6969
- name: Build
7070
run: bin/rails g ruby_ui:component:all --force true
7171

72+
- name: Remove generated docs stubs (conflict with app overrides)
73+
run: git checkout -- app/components/ruby_ui/docs/ 2>/dev/null || rm -rf app/components/ruby_ui/docs/
74+
7275
- uses: CatChen/check-git-status-action@v2
7376
with:
7477
fail-if-not-clean: true

0 commit comments

Comments
 (0)