I’m migrating a series of Ruby on Rails applications across to use GitHub Actions instead of Codeship.
This has been pretty easy, but I’m struggling to understand how I can get the output from my RSpec and Capistrano processes to be shown immediately in the log output; the logs are only available once the processes have completed, which is far from ideal.
I’ve tried adding
STDOUT.sync = true to my RSpec
spec_helper.rb file, but that hasn’t helped; I haven’t tried adding the same to Capistrano yet.
Has anyone got any advice on how to solve this? I’m sure it’s something obvious. I have the same problem with my PHP applications running PHPUnit.
I should note that this works fine under Codeship without having to add any special code, so it’s probably something GitHub Actions does differently.