Skip to content

Commit 28892b1

Browse files
Fix shellcheck SC2209 by using single-line background commands
Shellcheck was complaining about the multiline format for background processes. Changed to single-line format using && to combine cd and command execution. Before: ```yaml run: | cd spec/dummy RAILS_ENV=test rails server & ``` After: ```yaml run: cd spec/dummy && RAILS_ENV=test rails server & ``` This eliminates the SC2209 warning while maintaining the same functionality. Fixes: .github/workflows/pro-integration-tests.yml:207-217, 384-394 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent ae50b3e commit 28892b1

File tree

1 file changed

+4
-16
lines changed

1 file changed

+4
-16
lines changed

.github/workflows/pro-integration-tests.yml

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -205,16 +205,10 @@ jobs:
205205
run: cd spec/dummy && bundle exec rake react_on_rails:generate_packs
206206

207207
- name: Run Pro Node renderer in background
208-
run: |
209-
cd spec/dummy
210-
yarn run node-renderer &
211-
true
208+
run: cd spec/dummy && yarn run node-renderer &
212209

213210
- name: Run Rails server in background
214-
run: |
215-
cd spec/dummy
216-
RAILS_ENV=test rails server &
217-
true
211+
run: cd spec/dummy && RAILS_ENV=test rails server &
218212

219213
- name: Wait for Rails server to start
220214
run: |
@@ -384,16 +378,10 @@ jobs:
384378
run: cd spec/dummy && bundle exec rake react_on_rails:generate_packs
385379

386380
- name: Run Pro Node renderer in background
387-
run: |
388-
cd spec/dummy
389-
yarn run node-renderer &
390-
true
381+
run: cd spec/dummy && yarn run node-renderer &
391382

392383
- name: Run Rails server in background
393-
run: |
394-
cd spec/dummy
395-
RAILS_ENV=test rails server &
396-
true
384+
run: cd spec/dummy && RAILS_ENV=test rails server &
397385

398386
- name: Wait for Rails server to start
399387
run: |

0 commit comments

Comments
 (0)