-
Notifications
You must be signed in to change notification settings - Fork 384
Separate tests workflows (#530) #539
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This commit create a separate workflow for each test: * rspec tests * lint * js_tests
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good work 👍🏾
Please update the PR in a way that we preserve the history of the test.yml
in the new rspec_test.yml
.
Also, please check the comment I made about new rake tasks.
lib/tasks/ci.rake
Outdated
desc "Run CI rspec tests" | ||
task ci_rspec_tests: %i[environment rspec_tests] do | ||
puts "CI rspec tests" | ||
puts Rainbow("PASSED").green | ||
puts "" | ||
rescue StandardError => e | ||
puts e.to_s | ||
puts Rainbow("FAILED").red | ||
puts "" | ||
raise(e) | ||
end | ||
|
||
desc "Run CI js_tests" | ||
task ci_js_tests: %i[environment js_tests] do | ||
puts "CI js_tests" | ||
puts Rainbow("PASSED").green | ||
puts "" | ||
rescue StandardError => e | ||
puts e.to_s | ||
puts Rainbow("FAILED").red | ||
puts "" | ||
raise(e) | ||
end | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think these tasks could go under ci
namespace so that we get these tasks:
ci
: runsci:all
ci:all
runs all other ci tasksci:js
runsjs_tests
ci:rspec
runs rspec
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To me, this PR is good.
There are issues with our tests and our CI workflows. I think we should address them in a separate PR.
The objective of this PR was to get the result faster by running parallel workflows and being able to rerun a single failure without needing to run all. This objective is met.
@Judahmeek what do you think?
This commit create a separate workflow for each test:
* rspec tests
* lint
* js_tests
Closes #530
This change is