Skip to content

Commit ab60c69

Browse files
justin808claude
andcommitted
Restore accidentally removed webpack bundle cleanup steps in Pro CI
During rebase, the 'Remove old webpack bundles' step and the 'Restore test webpack bundles from cache' step were accidentally removed from the Pro CI workflow. These steps are essential for: 1. Cleaning old webpack bundles before tests 2. Restoring cached webpack bundles to speed up CI This restores both steps to their original position in the workflow. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 189f414 commit ab60c69

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/pro-test-package-and-gem.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,22 @@ jobs:
218218
path: react_on_rails_pro/node_modules
219219
key: v4-pro-package-node-modules-cache-${{ hashFiles('react_on_rails_pro/yarn.lock') }}
220220

221+
- name: Remove old webpack bundles
222+
run: |
223+
rm -rf spec/dummy/public/webpack
224+
rm -rf spec/dummy/ssr-generated
225+
226+
- id: get-sha
227+
run: echo "sha=$(git rev-parse HEAD)" >> "$GITHUB_OUTPUT"
228+
229+
- name: Restore test webpack bundles from cache
230+
uses: actions/cache@v4
231+
with:
232+
path: |
233+
react_on_rails_pro/spec/dummy/public/webpack/test
234+
react_on_rails_pro/spec/dummy/ssr-generated
235+
key: v4-pro-dummy-app-webpack-bundle-${{ steps.get-sha.outputs.sha }}
236+
221237
- name: Install Node modules with Yarn for Pro package
222238
working-directory: .
223239
run: |

0 commit comments

Comments
 (0)