Skip to content

Instantly share code, notes, and snippets.

@gerin98
Last active April 10, 2025 03:00
Show Gist options
  • Select an option

  • Save gerin98/df58edae1d90cc8b24a047ef79605ed1 to your computer and use it in GitHub Desktop.

Select an option

Save gerin98/df58edae1d90cc8b24a047ef79605ed1 to your computer and use it in GitHub Desktop.
the flank yaml
open class YamlConfigWriterTask(private val config: TestTargetsConfig) : DefaultTask() {
@TaskAction
fun writeFile() {
project.file("flank.yml").writeText(createConfig(config.testTargets))
}
fun createConfig(testTargets: Set<String>): String {
// the rest of the Flank configuration
appendLine("test-targets:")
appendLine(testTargets.joinToString("\n") { " - $it" })
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment