-
Notifications
You must be signed in to change notification settings - Fork 3
refactor: remove RAILS_MASTER_KEY from CI & upgrade to rails 7.1 #890
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
|
is this ready to merge?, if not what should be changed and can i do this? |
It is not, I'll update this comment with what's to be done later |
|
@lodewiges it's finished now, the goal was to get Edit: it is possible to get secrets on PRs from forks, but it's kind of a hack https://michaelheap.com/access-secrets-from-forks/ |
|
Thank you for your fixing it Guido, I understand why we still need the rails key, However should it be possible to give Mollie a fake api key when the environment is test. this requires a bit of logic in aplication.rb. But it should solve the problem I think. |
|
With a fake api key how would the tests work? It's a real api it calls which will throw unauthorised errors then |
|
The same compromise has to be made on amber-api, there the ImprovMX api is called in the tests. |
I thought we only needed a key to initialize mollie. I was not aware that we needed to used the production key |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## staging #890 +/- ##
========================================
Coverage 75.17% 75.17%
========================================
Files 55 55
Lines 1116 1116
========================================
Hits 839 839
Misses 277 277 ☔ View full report in Codecov by Sentry. |
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.
Code looks good, I will not approve yet because we need to upgraded some deprecated things before moving to rails 7.1
Checklist
origin/staging(git checkout staging ; git pull ; bundle exec rails db:reset ; git checkout BRANCH ; bundle exec rails db:migrate).