Last active
April 10, 2025 03:00
-
-
Save gerin98/df58edae1d90cc8b24a047ef79605ed1 to your computer and use it in GitHub Desktop.
the flank yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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