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

Why this change?

We run on different runners depending on the scenario. We should use the
right number of parallel jobs for bundle install based on the number of
CPU cores the runner has.
This commit is contained in:
Alan Guo Xiang Tan 2024-03-27 10:19:09 +08:00 committed by GitHub
parent 5875b25e68
commit 0df50a7e5d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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