jmfayard
03/12/2022, 9:26 PMBig Chungus
03/12/2022, 10:06 PMlouiscad
03/13/2022, 3:16 AMPiotr Krzemiński
03/13/2022, 11:46 AMjmfayard
03/13/2022, 1:04 PMscript-gennerator
I have a test GenerateKotlinScripts
who produces Kotlin code from YAML workflows.
I have 3 possibilities, each with drawbacks:
• I produce a script examples/my-script.kts
from examples/my-script.yml
with the latest published version, for example 0.9.0
of github-actions-dsl-kotlin. But then I can't use features that changed since the last published version
• Same but I use a version 1.0-SNAPSHOT
with the maven repository /Users/xxx/.m2
. But then the scripts aren't directly executable, you have to publish the library to maven local, maybe re-run the test.
• Or I keep scripts inside script-generator/src/test/resources/GenerateKotlinScripts.kts
, that's inside the resources folder, without @file:DependsOn()
and #!/usr/bin/env kotlin
, but then I can't execute the scriptBig Chungus
03/13/2022, 1:07 PMPiotr Krzemiński
03/13/2022, 7:04 PMBasicJvmScriptingHost().eval(...)
in https://kotlinlang.org/docs/custom-script-deps-tutorial.html#create-a-scripting-host