-
-
Notifications
You must be signed in to change notification settings - Fork 120
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
fix(ci): run GH action on external PRs as well #112
Conversation
I figured the old Node versions might fail; for reference Node 14 fails to install: Run actions/setup-node@v3
Attempting to download 14.x...
Not found in manifest. Falling back to download directly from Node
Error: Unable to find Node version '14.x' for platform darwin and architecture arm64. I'd like to keep Node 16 for now, although it is EoL, to ensure continuous testing throughout the range. Will bump that later too. Using
And with
Afaict, per Automattic/node-canvas#2025 (comment), this likely requires updating As a less intrusive change, I'd like to try |
- that one [passed](https://github.com/agilgur5/react-signature-canvas/actions/runs/12562533381/job/35023139677) - 18.x and other 16.x versions failed to install `node-canvas`, c.f. #112 (comment)
Ok this is working for now. Codecov status check isn't reporting seemingly b/c the old |
I split off the Node/OS version pinning to a separate PR #113 as it's independent of GH actions running on external PRs. |
c97eca2
to
ba24bb9
Compare
Hmm, this is still happening even with #113 being merged and CI running on the merged commit. I think this is because Codecov seemingly no longer supports tokenless coverage report uploads? The docs and GH Action both require a token now? EDIT: looks like there's some requirements for tokenless now |
Split out another PR to get this working: #114 |
- `push` works for all PRs from my own branches, but not for PRs from forks from external contributors - see also https://github.com/agilgur5/mst-persist/blob/4f8b9f116d1645112ac2eb790d41f007916b9ff0/.github/workflows/ci.yml#L2
ba24bb9
to
925daf9
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #112 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 1 1
Lines 75 75
Branches 9 9
=========================================
Hits 75 75 ☔ 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.
fix(ci): run GH action on PRs as well - `push` works for all PRs from my own branches, but not for PRs from forks from external contributors - see also https://github.com/agilgur5/mst-persist/blob/4f8b9f116d1645112ac2eb790d41f007916b9ff0/.github/workflows/ci.yml#L2 (cherry picked from commit ec4e365)
Summary
Add
pull_request
to GHAon
configDetails
push
works for all PRs from my own branches, but not for PRs from forks from external contributors#110 and #111 are not running CI because this was missing per #109 (comment)