2929 uses : actions/setup-node@v4
3030 with :
3131 node-version : ${{ matrix.versions == 'oldest' && '16' || '20' }}
32+ cache : yarn
33+ cache-dependency-path : ' **/yarn.lock'
3234 - name : Print system information
3335 run : |
3436 echo "Linux release: "; cat /etc/issue
@@ -41,26 +43,16 @@ jobs:
4143 - name : run conversion script to support shakapacker v6
4244 if : matrix.versions == 'oldest'
4345 run : script/convert
44- - name : Save root node_modules to cache
45- uses : actions/cache@v4
46- with :
47- path : node_modules
48- key : v5-package-node-modules-cache-${{ hashFiles('yarn.lock') }}
4946 - name : Install Node modules with Yarn for renderer package
5047 run : |
5148 yarn install --no-progress --no-emoji ${{ matrix.versions == 'newest' && '--frozen-lockfile' || '' }}
5249 sudo yarn global add yalc
5350 - name : yalc publish for react-on-rails
5451 run : yalc publish
55- - name : Save spec/dummy/node_modules to cache
56- uses : actions/cache@v4
57- with :
58- path : spec/dummy/node_modules
59- key : dummy-app-node-modules-cache-${{ hashFiles('spec/dummy/yarn.lock') }}-${{ matrix.versions }}
6052 - name : yalc add react-on-rails
6153 run : cd spec/dummy && yalc add react-on-rails
6254 - name : Install Node modules with Yarn for dummy app
63- run : cd spec/dummy && yarn install --no-progress --no-emoji ${{ matrix.versions == 'newest' && '--frozen-lockfile' }}
55+ run : cd spec/dummy && yarn install --no-progress --no-emoji ${{ matrix.versions == 'newest' && '--frozen-lockfile' || '' }}
6456 - name : Save dummy app ruby gems to cache
6557 uses : actions/cache@v4
6658 with :
10597 uses : actions/setup-node@v4
10698 with :
10799 node-version : ${{ matrix.versions == 'oldest' && '16' || '20' }}
100+ cache : yarn
101+ cache-dependency-path : ' **/yarn.lock'
108102 - name : Print system information
109103 run : |
110104 echo "Linux release: "; cat /etc/issue
@@ -117,11 +111,6 @@ jobs:
117111 - name : run conversion script to support shakapacker v6
118112 if : matrix.versions == 'oldest'
119113 run : script/convert
120- - name : Save root node_modules to cache
121- uses : actions/cache@v4
122- with :
123- path : node_modules
124- key : v5-package-node-modules-cache-${{ hashFiles('yarn.lock') }}
125114 - name : Save root ruby gems to cache
126115 uses : actions/cache@v4
127116 with :
@@ -132,11 +121,6 @@ jobs:
132121 with :
133122 path : spec/dummy/vendor/bundle
134123 key : dummy-app-gem-cache-${{ hashFiles('spec/dummy/Gemfile.lock') }}-${{ matrix.versions }}
135- - name : Save spec/dummy/node_modules to cache
136- uses : actions/cache@v4
137- with :
138- path : spec/dummy/node_modules
139- key : dummy-app-node-modules-cache-${{ hashFiles('spec/dummy/yarn.lock') }}-${{ matrix.versions }}
140124 - id : get-sha
141125 run : echo "sha=\"$(git rev-parse HEAD)\"" >> "$GITHUB_OUTPUT"
142126 - name : Save test Webpack bundles to cache (for build number checksum used by RSpec job)
0 commit comments