Skip to content
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

Separate tests workflows (#530) #539

Merged
merged 3 commits into from
Aug 3, 2023

Conversation

Yassa-hue
Copy link
Contributor

@Yassa-hue Yassa-hue commented Jul 28, 2023

This commit create a separate workflow for each test:
* rspec tests
* lint
* js_tests

Closes #530


This change is Reviewable

This commit create a separate workflow for each test:
	* rspec tests
	* lint
	* js_tests
@Yassa-hue Yassa-hue requested a review from ahangarha July 28, 2023 06:42
Copy link
Member

@ahangarha ahangarha left a 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.

Comment on lines 16 to 39
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

Copy link
Member

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: runs ci:all
  • ci:all runs all other ci tasks
  • ci:js runs js_tests
  • ci:rspec runs rspec

Copy link
Member

@ahangarha ahangarha left a 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?

@justin808 justin808 merged commit 1dd25bc into shakacode:master Aug 3, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Separate workflows
3 participants