-
Notifications
You must be signed in to change notification settings - Fork 6
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
MNT Check licenses #83
MNT Check licenses #83
Conversation
9b925bf
to
ddfd3ad
Compare
Can we leverage GitHub Actions dispatch API to do this for us? I'm not fussed either way but seems worth considering at least. |
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.
On the whole the code itself looks good. Is there a CI run on your own account or somewhere that I can see this running?
My own account, though you probably don't have access to view the logs - https://github.com/emteknetnz/recipe-kitchen-sink/actions/runs/12407915243 Ran in over 13 minutes (bit more than the 1 or 2 I was expecting), went green, a few seconds for composer and just under 13 minutes for npm |
ddfd3ad
to
5e9b7e5
Compare
I'm seeing lots of
Does that mean it's failing to check some of our dependencies? Please also respond to #83 (comment) |
Since that's confusing, I'll update the script to validate there are non-dev deps before running it |
Yes considered that, though to match the pattern used for gha-dispatch-ci, that would require creating a whole new silverstripe/gha-dispatch-liceneses and silverstripe/gha-liceneses repos with actions, which just seems excessive Would probably get away with not having one of those repos (probably gha-dispatch-licenses), though still seems a bit wrong to have a standalone action that only runs on a single module I think we do need at least one extra repo is because github actions doesn't want to run things on a cron that aren't the default branch |
I don't think we'd need entirely new repos for it - but it's not much effort to click the buttons once a week so I'm okay without using dispatch for this. |
5e9b7e5
to
56e5e08
Compare
Updated script run with check for empty non-dev - https://github.com/emteknetnz/recipe-kitchen-sink/actions/runs/12421779310/job/34682176496#step:7:1022 |
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.
LGTM
Not waiting for CI since this won't affect it - any failures will be unrelated anyway. |
Issue #80
Cron will run on the default branch, which is currently 5. We'll need to manually run the job targetting different branch e.g. 6.0 to check the licenses there