Skip to content

A platform for community discussion. Free, open, simple.

DEV: Use the right number of cores for bundle install in tests workflow (#26389)

Alan Guo Xiang Tan0df50a7e5da8
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index eff4d96cdb5..62b5c429939 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -96,7 +96,7 @@ jobs:
bundle config --local path vendor/bundle
bundle config --local deployment true
bundle config --local without development
- bundle install --jobs 4
+ bundle install --jobs $(($(nproc) - 1))
bundle clean
- name: Get yarn cache directory