Skip to content

Commit 22b67eb

Browse files
justin808claude
andcommitted
Add assets:clobber step before precompile in CI
Ensures CI tests a fresh webpack build rather than potentially getting "Everything's up-to-date" from cached assets. The clobber task removes both Sprockets assets (public/assets) and webpack output (public/webpack). 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent ad334ea commit 22b67eb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/precompile-check.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,10 @@ jobs:
133133
run: cd react_on_rails/spec/dummy && pnpm run build:rescript
134134
- name: Generate file system-based packs
135135
run: cd react_on_rails/spec/dummy && RAILS_ENV=production bundle exec rake react_on_rails:generate_packs
136+
- name: Clean compiled assets
137+
# Clobber removes both Sprockets assets (public/assets) and webpack output (public/webpack)
138+
# This ensures we test a fresh build, not cached "Everything's up-to-date" output
139+
run: cd react_on_rails/spec/dummy && RAILS_ENV=production bundle exec rake assets:clobber
136140
- name: Run assets:precompile and capture output
137141
# Timeout prevents hung webpack processes from running for 6 hours.
138142
# Typical precompile takes 2-5 minutes; 15 minutes is generous.

0 commit comments

Comments
 (0)