-
Notifications
You must be signed in to change notification settings - Fork 143
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
Auto-updating Github Action matrix for node (i.e. ci-config-github-actions) #416
Comments
@dominykas |
Yes, can't wait for workflow partials! In the meantime sounds like we'll want to build an installable module, so we'll see where that takes us, I guess. |
So, in general, looks like this will be somewhat addressed by GH work, and in the meantime we agreed that maybe some node package, which fails things when workflows are out of date might be useful. I'll be doing some related work on wiby side, and will open a new issue if/when I have something that's worth sharing. Closing this for now. |
fwiw, I’ve made an action ( https://github.com/ljharb/actions/tree/HEAD/node/matrix ) which is reusable, supports semver strings, and is also always up to date. I’ll be using it on all 200-300 of my repos, so hopefully it’ll be reliable :-) |
I played around with this a little bit, and since the only re-usable primitive in Github Actions is a
step
packaged as an "action", the only possible implementation to have an auto-updating matrix is something like this:1️⃣ Which is suuuuuuuper verbose? Did I miss something? What do people do to solve this issue - do they generate actions or smth from templates? Would we need a CLI or smth to help with that generation? I can't imagine someone copy/pasting that across hundreds of repos in an organization?
2️⃣ It also makes wonder if it's worth maintaining an action, when instead of the
uses: nodejs/ci-config-github-actions@master
block (5 lines) you couldrun: npx @pkgjs/node-matrix --gte 10 --policy lts
instead?3️⃣ But if we are to keep the action - should we rename the repo to something that follows the action convetion better, e.g.
nodejs/version-matrix-action
?The text was updated successfully, but these errors were encountered: