mirror of
https://github.com/gmeligio/flutter-docker-image.git
synced 2026-05-24 12:30:34 +00:00
7f4a0ab4c4
`cue` can generate a YAML file and parse a JSON file. Let's use it instead of `yq`. The same thing might be possible for `jq`.
30 lines
727 B
CUE
30 lines
727 B
CUE
#FileContentTests: {
|
|
name: string
|
|
path: _
|
|
expectedContents: [string]
|
|
}
|
|
|
|
#ContainerStructureTest: {
|
|
schemaVersion: _
|
|
commandTests: _
|
|
fileContentTests: [...#FileContentTests]
|
|
}
|
|
|
|
input: #ContainerStructureTest
|
|
|
|
android_cmdline_tools_version: string @tag(android_cmdline_tools_version)
|
|
android_cmdline_tools_test_expected_content: string @tag(android_cmdline_tools_test_expected_content)
|
|
|
|
output: {
|
|
schemaVersion: input.schemaVersion
|
|
commandTests: input.commandTests
|
|
fileContentTests: [
|
|
{
|
|
name: "Android SDK Command-line Tools is version \(android_cmdline_tools_version)"
|
|
path: input.fileContentTests[0].path
|
|
expectedContents: [android_cmdline_tools_test_expected_content]
|
|
},
|
|
input.fileContentTests[1]
|
|
]
|
|
}
|