-
-
Notifications
You must be signed in to change notification settings - Fork 943
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
test(docs): disable versions check for external contributors #2181
test(docs): disable versions check for external contributors #2181
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## next #2181 +/- ##
=======================================
Coverage 99.60% 99.61%
=======================================
Files 2800 2800
Lines 252410 252410
Branches 1097 1099 +2
=======================================
+ Hits 251421 251441 +20
+ Misses 962 942 -20
Partials 27 27 |
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.
Will the CI still check the docs version, even when the PR is on another fork?
Good point. I have to check. |
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 could be wrong, but it seems that this PR disables the test when a contributor creates a PR in their own fork. But when we then merge that PR, the test would run on our next
branch and could then fail.
So this doesn't look like it is the right solution, but sadly I also do not have another idea right now 😕
Is the test in our CI always executed via a PR and therefore the origin will always be |
I created #2394 as an external contributor test. |
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.
Yes, the test gets executed: https://github.com/faker-js/faker/actions/runs/6201950881/job/16839680435?pr=2394#step:8:110
From #2394 : https://github.com/faker-js/faker/actions/runs/6201950881/job/16839679994?pr=2394#step:2:39
https://github.com/faker-js/faker/actions/runs/6201950881/job/16839679994?pr=2394#step:8:108
It uses the remote of the target repository as origin. |
Fixes #2174 (comment)
This disables the versions check for external contributors/those that do not use the faker main repository as their origin.