Oleg Yukhnevich
09/28/2022, 6:14 PMsyncWorkflows
?Oleg Yukhnevich
09/28/2022, 6:16 PMPiotr Krzemiński
09/28/2022, 6:33 PMPiotr Krzemiński
09/28/2022, 6:34 PMjmfayard
09/28/2022, 6:37 PMjmfayard
09/28/2022, 6:42 PMOleg Yukhnevich
09/28/2022, 6:48 PMpreCommitHook
- if true, hook will be automatically installed on current local machine (can be skipped on CI by default)
• new task, like syncKotlinWorkflows
which will automatically take all kts
workflows in github/workflows
and generate yaml (also we can sync version of plugin to dependency used in scripts and update it)
• under the hood, better will be if both hook and task just call some executable, created via jlink or graal(better), so it will run just super fast, and gradle will be not involved in precommit hook at all.
• this plugin/executable can also be used to convert yaml files to kotlin on first use.
So in this case, adoption of library will be super easy
WDYT?
I can create 2 issues if needed: one for gradle/maven plugin and one for some sort of small CLI with graal?jmfayard
09/28/2022, 6:52 PMjmfayard
09/28/2022, 6:54 PMjmfayard
09/28/2022, 6:59 PM.github/workflows/bootstrap.sh
written by us that would
• detekt if Kotlin is already installed, else tels you to open https://kotlinlang.org/docs/command-line.html
• list all .github/workflows/*.kts
available
• maybe automatically chmod +x because this shit is boring
• check which input and output files have changed
• runs the one that needs to be modified
• maybe install itself as a pre-push hook?
The drawback of course is that someone (meaning: not me 🙂 )
has to write that some awful Bash shit to have the bootstrap.sh thing workingOleg Yukhnevich
09/28/2022, 7:02 PMjmfayard
09/28/2022, 7:04 PMjmfayard
09/28/2022, 7:23 PMOleg Yukhnevich
09/28/2022, 7:30 PMJavier
09/29/2022, 10:13 PMJavier
09/29/2022, 10:13 PMJavier
09/29/2022, 10:13 PMJavier
09/29/2022, 10:14 PMjmfayard
09/30/2022, 9:11 AMJavier
09/30/2022, 9:12 AMjmfayard
09/30/2022, 9:12 AMJavier
09/30/2022, 9:23 AMPiotr Krzemiński
09/30/2022, 10:21 AM