When there's no bundler-cache, the build succeeds. When bundler-cache is true, the xcodebuild step fails:
xcodebuild test
Error: spawn xcpretty ENOENT
at Process.ChildProcess._handle.onexit (node:internal/child_process:282:[19](https://github.com/squareup/wallet/actions/runs/3318014846/jobs/5481488702#step:7:20))
at onErrorNT (node:internal/child_process:477:16)
at processTicksAndRejections (node:internal/process/task_queues:83:[21](https://github.com/squareup/wallet/actions/runs/3318014846/jobs/5481488702#step:7:22))
I lightly suspect it's because setup-ruby changes the bundle configuration. Is there a way for xcodebuild to detect that xcpretty was installed via bundle and to run bundle exec xcpretty instead?
We've got a build that looks something like:
When there's no
bundler-cache
, the build succeeds. Whenbundler-cache
is true, thexcodebuild
step fails:I lightly suspect it's because
setup-ruby
changes the bundle configuration. Is there a way forxcodebuild
to detect thatxcpretty
was installed viabundle
and to runbundle exec xcpretty
instead?