-
Notifications
You must be signed in to change notification settings - Fork 112
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
Use reusable GitHub Actions for testing #519
Conversation
b0adeaf
to
41afbf4
Compare
Upon reviewing the PR, it seems that it has been open for quite some time without recent activity. In order to keep our repository organized and up-to-date, we've decided to close this draft PR for now. |
41afbf4
to
f4be66a
Compare
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.
Still a TODO, but this needs to happen. The current action is using wrong versions for NodeJS today. It will get worse once we add Ruby 3 to the test matrix.
f4be66a
to
61bb4c6
Compare
t.libs << ['test', test_dir] | ||
t.pattern = "#{test_dir}/**/*_test.rb" | ||
t.test_files = [Rails.root.join('test/unit/foreman/access_permissions_test.rb')] |
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.
There's a related discussion in theforeman/actions#16 on the best way to do this.
61bb4c6
to
ad9e31b
Compare
This moves the specific override to the test defined in rake. This means running test:foreman_ansible runs all required tests from core as well. The only downside it that running rake test will run the particular test twice.
This reduces the duplication between projects. For example, this ensures testing on Ruby 2.7 and NodeJS 14 which previously didn't happen.
ad9e31b
to
872a733
Compare
Can we merge this PR? |
This reduces the duplication between projects. For example, this ensures testing on Ruby 2.7 which previously didn't happen.
There are various preparation PRs, see the commits for details.
Right now this is incomplete because it loses the caching step that happens on a push to master. It also still uses the repository in my own namespace. This is just to see if it works.