@@ -67,13 +67,18 @@ jobs:
6767 path : spec/dummy/vendor/bundle
6868 key : dummy-app-gem-cache-${{ hashFiles('react_on_rails.gemspec') }}-${{ hashFiles('Gemfile.development_dependencies') }}-${{ matrix.versions }}
6969 - name : Install Ruby Gems for dummy app
70- run : cd spec/dummy && bundle lock --add-platform 'x86_64-linux' && bundle check --path=vendor/bundle || bundle _2.5.9_ install --path=vendor/bundle --jobs=4 --retry=3
70+ run : |
71+ cd spec/dummy
72+ bundle lock --add-platform 'x86_64-linux'
73+ if ! bundle check --path=vendor/bundle; then
74+ bundle _2.5.9_ install --path=vendor/bundle --jobs=4 --retry=3
75+ fi
7176 - name : generate file system-based packs
72- run : cd spec/dummy && RAILS_ENV=test bundle exec rake react_on_rails:generate_packs
77+ run : cd spec/dummy && RAILS_ENV=" test" bundle exec rake react_on_rails:generate_packs
7378 - name : Build test bundles for dummy app
74- run : cd spec/dummy && rm -rf public/webpack/test && yarn run build:rescript && RAILS_ENV=test NODE_ENV=test bin/${{ matrix.versions == 'oldest' && 'web' || 'shaka' }}packer
79+ run : cd spec/dummy && rm -rf public/webpack/test && yarn run build:rescript && RAILS_ENV=" test" NODE_ENV=" test" bin/${{ matrix.versions == 'oldest' && 'web' || 'shaka' }}packer
7580 - id : get-sha
76- run : echo "::set-output name= sha:: $(git rev-parse HEAD)"
81+ run : echo "sha=\" $(git rev-parse HEAD)\"" >> "$GITHUB_OUTPUT "
7782 - name : Save test webpack bundles to cache (for build number checksum used by rspec job)
7883 uses : actions/cache/save@v4
7984 with :
@@ -133,7 +138,7 @@ jobs:
133138 path : spec/dummy/node_modules
134139 key : dummy-app-node-modules-cache-${{ hashFiles('spec/dummy/package.json') }}-${{ matrix.versions }}
135140 - id : get-sha
136- run : echo "::set-output name= sha:: $(git rev-parse HEAD)"
141+ run : echo "sha=\" $(git rev-parse HEAD)\"" >> "$GITHUB_OUTPUT "
137142 - name : Save test webpack bundles to cache (for build number checksum used by rspec job)
138143 uses : actions/cache@v4
139144 with :
@@ -150,15 +155,24 @@ jobs:
150155 - name : Install Node modules with Yarn for dummy app
151156 run : cd spec/dummy && yarn install --no-progress --no-emoji
152157 - name : Install Ruby Gems for package
153- run : bundle lock --add-platform 'x86_64-linux' && bundle check --path=vendor/bundle || bundle _2.5.9_ install --path=vendor/bundle --jobs=4 --retry=3
158+ run : |
159+ bundle lock --add-platform 'x86_64-linux'
160+ if ! bundle check --path=vendor/bundle; then
161+ bundle _2.5.9_ install --path=vendor/bundle --jobs=4 --retry=3
162+ fi
154163 - name : Install Ruby Gems for dummy app
155- run : cd spec/dummy && bundle lock --add-platform 'x86_64-linux' && bundle check --path=vendor/bundle || bundle _2.5.9_ install --path=vendor/bundle --jobs=4 --retry=3
164+ run : |
165+ cd spec/dummy
166+ bundle lock --add-platform 'x86_64-linux'
167+ if ! bundle check --path=vendor/bundle; then
168+ bundle _2.5.9_ install --path=vendor/bundle --jobs=4 --retry=3
169+ fi
156170 - name : Ensure minimum required Chrome version
157171 run : |
158172 echo -e "Already installed $(google-chrome --version)\n"
159173 MINIMUM_REQUIRED_CHROME_VERSION=75
160174 INSTALLED_CHROME_MAJOR_VERSION="$(google-chrome --version | tr ' .' '\t' | cut -f3)"
161- if [[ $INSTALLED_CHROME_MAJOR_VERSION < $MINIMUM_REQUIRED_CHROME_VERSION ]]; then
175+ if [[ $INSTALLED_CHROME_MAJOR_VERSION -lt $MINIMUM_REQUIRED_CHROME_VERSION ]]; then
162176 wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
163177 sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'
164178 sudo apt-get update
@@ -168,7 +182,7 @@ jobs:
168182 - name : Increase the amount of inotify watchers
169183 run : echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
170184 - name : generate file system-based packs
171- run : cd spec/dummy && RAILS_ENV=test bundle exec rake react_on_rails:generate_packs
185+ run : cd spec/dummy && RAILS_ENV=" test" bundle exec rake react_on_rails:generate_packs
172186 - name : Git Stuff
173187 if : matrix.versions == 'oldest'
174188 run : |
0 commit comments