Skip to content

Getting Github Actions CI to Run Your Rspec Tests

Shen Yang edited this page Oct 28, 2022 · 3 revisions

It's usually faster to run tests locally but sometimes you might want to let github actions run your test.

The Rspec job takes about 6 minutes to run by default.
The first thing you want to do is limit rspec to run only your relevant test file.
Open .github/workflows/rspec.yml and edit bundle exec rspec to bundle exec rspec <path to your test file>
Commit and Push.
Now the rspec job for your pull request will only take around 2 minutes.

TODO Squashing Commits

Clone this wiki locally