DEV Community

loading...

Discussion on: GitHub Actions: Run RSpec Test On Every Push For Free

Collapse
walidvb profile image
Walid

Great post, and great explanations!

I'm still struggling to get it fully working, and in particular, to understand how processes are launched, such as psql.
I have a repo containing the frontend(expo) and the backend(rails), and I use rspec to test my frontend code, which is run against a another process serving the frontend(a simple nodejs on another port, and I change Capybara.app_host).

Ideally, I would have be able to:

  1. setup and build my rails app(as described)
  2. setup and build my frontend app
  3. run a the lightweight server to serve my front end
  4. run rspec (with the other server running, to be able to load the html)

Wondering how/if this can be accomplished with github actions though!

Collapse
sulmanweb profile image
Sulman Baig Author

I have never done that. Will be nice though. Github actions is like docker try searching for some node official action and run it after ruby action is complete.

Collapse
walidvb profile image
Walid

that's what i'm on, but i guess the process is killed before the ruby action runs..

Thread Thread
sulmanweb profile image
Sulman Baig Author

You can call another action in one action that might help your cause.

Thread Thread
walidvb profile image
Walid

will keep you posted and share the solution!