lint all cue files

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
This commit is contained in:
Andrea Luzzardi
2021-01-20 18:26:10 -08:00
parent 843f24d763
commit 6ab7f88007
46 changed files with 574 additions and 660 deletions

View File

@@ -3,27 +3,24 @@ package testing
test: {
bool
#dagger: {
compute: [
{
do: "fetch-container"
ref: "alpine"
},
{
do: "exec"
args: ["sh", "-c", """
#dagger: compute: [
{
do: "fetch-container"
ref: "alpine"
},
{
do: "exec"
args: ["sh", "-c", """
printf "true" > /tmp/out
"""
]
dir: "/"
},
{
do: "export"
// Source path in the container
source: "/tmp/out"
format: "bool"
},
]
}
""",
]
dir: "/"
},
{
do: "export"
// Source path in the container
source: "/tmp/out"
format: "bool"
},
]
}

View File

@@ -5,19 +5,19 @@ test1: {
#dagger: compute: [
{
do: "fetch-container"
do: "fetch-container"
ref: "alpine"
},
{
do: "exec"
args: ["sh", "-c", """
echo lol1 > /tmp/out
"""]
dir: "/"
echo lol1 > /tmp/out
"""]
dir: "/"
always: true
},
{
do: "export"
do: "export"
source: "/tmp/out"
format: "string"
},
@@ -29,19 +29,19 @@ test2: {
#dagger: compute: [
{
do: "fetch-container"
do: "fetch-container"
ref: "alpine"
},
{
do: "exec"
args: ["sh", "-c", """
echo lol2 > /tmp/out
"""]
dir: "/"
echo lol2 > /tmp/out
"""]
dir: "/"
always: true
},
{
do: "export"
do: "export"
source: "/tmp/out"
format: "string"
},
@@ -53,19 +53,19 @@ test3: {
#dagger: compute: [
{
do: "fetch-container"
do: "fetch-container"
ref: "alpine"
},
{
do: "exec"
args: ["sh", "-c", """
echo lol3 > /tmp/out
"""]
dir: "/"
echo lol3 > /tmp/out
"""]
dir: "/"
always: true
},
{
do: "export"
do: "export"
source: "/tmp/out"
format: "string"
},
@@ -77,19 +77,19 @@ test4: {
#dagger: compute: [
{
do: "fetch-container"
do: "fetch-container"
ref: "alpine"
},
{
do: "exec"
args: ["sh", "-c", """
echo lol4 > /tmp/out
"""]
dir: "/"
echo lol4 > /tmp/out
"""]
dir: "/"
always: true
},
{
do: "export"
do: "export"
source: "/tmp/out"
format: "string"
},
@@ -101,19 +101,19 @@ test5: {
#dagger: compute: [
{
do: "fetch-container"
do: "fetch-container"
ref: "alpine"
},
{
do: "exec"
args: ["sh", "-c", """
echo lol5 > /tmp/out
"""]
dir: "/"
echo lol5 > /tmp/out
"""]
dir: "/"
always: true
},
{
do: "export"
do: "export"
source: "/tmp/out"
format: "string"
},
@@ -125,19 +125,19 @@ test6: {
#dagger: compute: [
{
do: "fetch-container"
do: "fetch-container"
ref: "alpine"
},
{
do: "exec"
args: ["sh", "-c", """
echo lol6 > /tmp/out
"""]
dir: "/"
echo lol6 > /tmp/out
"""]
dir: "/"
always: true
},
{
do: "export"
do: "export"
source: "/tmp/out"
format: "string"
},
@@ -149,19 +149,19 @@ test7: {
#dagger: compute: [
{
do: "fetch-container"
do: "fetch-container"
ref: "alpine"
},
{
do: "exec"
args: ["sh", "-c", """
echo lol7 > /tmp/out
"""]
dir: "/"
echo lol7 > /tmp/out
"""]
dir: "/"
always: true
},
{
do: "export"
do: "export"
source: "/tmp/out"
format: "string"
},
@@ -173,19 +173,19 @@ test8: {
#dagger: compute: [
{
do: "fetch-container"
do: "fetch-container"
ref: "alpine"
},
{
do: "exec"
args: ["sh", "-c", """
echo lol8 > /tmp/out
"""]
dir: "/"
echo lol8 > /tmp/out
"""]
dir: "/"
always: true
},
{
do: "export"
do: "export"
source: "/tmp/out"
format: "string"
},
@@ -197,19 +197,19 @@ test9: {
#dagger: compute: [
{
do: "fetch-container"
do: "fetch-container"
ref: "alpine"
},
{
do: "exec"
args: ["sh", "-c", """
echo lol9 > /tmp/out
"""]
dir: "/"
echo lol9 > /tmp/out
"""]
dir: "/"
always: true
},
{
do: "export"
do: "export"
source: "/tmp/out"
format: "string"
},
@@ -221,19 +221,19 @@ test10: {
#dagger: compute: [
{
do: "fetch-container"
do: "fetch-container"
ref: "alpine"
},
{
do: "exec"
args: ["sh", "-c", """
echo lol10 > /tmp/out
"""]
dir: "/"
echo lol10 > /tmp/out
"""]
dir: "/"
always: true
},
{
do: "export"
do: "export"
source: "/tmp/out"
format: "string"
},

View File

@@ -3,27 +3,25 @@ package testing
teststring: {
string
#dagger: {
compute: [
{
do: "fetch-container"
ref: "alpine"
},
{
do: "exec"
args: ["sh", "-c", """
#dagger: compute: [
{
do: "fetch-container"
ref: "alpine"
},
{
do: "exec"
args: ["sh", "-c", """
echo something > /tmp/out
"""
]
// XXX Blocked by https://github.com/blocklayerhq/dagger/issues/19
dir: "/"
},
{
do: "export"
// Source path in the container
source: "/tmp/out"
format: "lalalalal"
},
]
}
""",
]
// XXX Blocked by https://github.com/blocklayerhq/dagger/issues/19
dir: "/"
},
{
do: "export"
// Source path in the container
source: "/tmp/out"
format: "lalalalal"
},
]
}

View File

@@ -3,18 +3,16 @@ package testing
teststring: {
string
#dagger: {
compute: [
{
do: "fetch-container"
ref: "alpine"
},
{
do: "export"
// Source path in the container
source: "/tmp/lalala"
format: "string"
},
]
}
#dagger: compute: [
{
do: "fetch-container"
ref: "alpine"
},
{
do: "export"
// Source path in the container
source: "/tmp/lalala"
format: "string"
},
]
}

View File

@@ -2,29 +2,27 @@ package testing
test: {
string
=~ "^NAAAA.+"
=~"^NAAAA.+"
#dagger: {
compute: [
{
do: "fetch-container"
ref: "alpine"
},
{
do: "exec"
args: ["sh", "-c", """
#dagger: compute: [
{
do: "fetch-container"
ref: "alpine"
},
{
do: "exec"
args: ["sh", "-c", """
printf something > /tmp/out
"""
]
// XXX Blocked by https://github.com/blocklayerhq/dagger/issues/19
dir: "/"
},
{
do: "export"
// Source path in the container
source: "/tmp/out"
format: "string"
},
]
}
""",
]
// XXX Blocked by https://github.com/blocklayerhq/dagger/issues/19
dir: "/"
},
{
do: "export"
// Source path in the container
source: "/tmp/out"
format: "string"
},
]
}

View File

@@ -1,27 +1,22 @@
package testing
test: {
#dagger: {
compute: [
{
do: "fetch-container"
ref: "alpine"
},
{
do: "exec"
args: ["sh", "-c", """
echo '{"something": "something"}' > /tmp/out
"""
]
dir: "/"
},
{
do: "export"
// Source path in the container
source: "/tmp/out"
format: "json"
},
test: #dagger: compute: [
{
do: "fetch-container"
ref: "alpine"
},
{
do: "exec"
args: ["sh", "-c", """
echo '{"something": "something"}' > /tmp/out
""",
]
}
}
dir: "/"
},
{
do: "export"
// Source path in the container
source: "/tmp/out"
format: "json"
},
]

View File

@@ -3,27 +3,25 @@ package testing
test: {
number
#dagger: {
compute: [
{
do: "fetch-container"
ref: "alpine"
},
{
do: "exec"
args: ["sh", "-c", """
#dagger: compute: [
{
do: "fetch-container"
ref: "alpine"
},
{
do: "exec"
args: ["sh", "-c", """
echo -123.5 > /tmp/out
"""
]
// XXX Blocked by https://github.com/blocklayerhq/dagger/issues/19
dir: "/"
},
{
do: "export"
// Source path in the container
source: "/tmp/out"
format: "number"
},
]
}
""",
]
// XXX Blocked by https://github.com/blocklayerhq/dagger/issues/19
dir: "/"
},
{
do: "export"
// Source path in the container
source: "/tmp/out"
format: "number"
},
]
}

View File

@@ -3,27 +3,25 @@ package testing
test: {
string
#dagger: {
compute: [
{
do: "fetch-container"
ref: "alpine"
},
{
do: "exec"
args: ["sh", "-c", """
#dagger: compute: [
{
do: "fetch-container"
ref: "alpine"
},
{
do: "exec"
args: ["sh", "-c", """
printf something > /tmp/out
"""
]
// XXX Blocked by https://github.com/blocklayerhq/dagger/issues/19
dir: "/"
},
{
do: "export"
// Source path in the container
source: "/tmp/out"
format: "string"
},
]
}
""",
]
// XXX Blocked by https://github.com/blocklayerhq/dagger/issues/19
dir: "/"
},
{
do: "export"
// Source path in the container
source: "/tmp/out"
format: "string"
},
]
}

View File

@@ -2,29 +2,27 @@ package testing
test: {
string
=~ "^some.+"
=~"^some.+"
#dagger: {
compute: [
{
do: "fetch-container"
ref: "alpine"
},
{
do: "exec"
args: ["sh", "-c", """
#dagger: compute: [
{
do: "fetch-container"
ref: "alpine"
},
{
do: "exec"
args: ["sh", "-c", """
printf something > /tmp/out
"""
]
// XXX Blocked by https://github.com/blocklayerhq/dagger/issues/19
dir: "/"
},
{
do: "export"
// Source path in the container
source: "/tmp/out"
format: "string"
},
]
}
""",
]
// XXX Blocked by https://github.com/blocklayerhq/dagger/issues/19
dir: "/"
},
{
do: "export"
// Source path in the container
source: "/tmp/out"
format: "string"
},
]
}

View File

@@ -1,29 +1,24 @@
package testing
test: {
#dagger: {
compute: [
{
do: "fetch-container"
ref: "alpine"
},
{
do: "exec"
args: ["sh", "-c", """
echo "--- # Shopping list
[milk, pumpkin pie, eggs, juice]" > /tmp/out
"""
]
// XXX Blocked by https://github.com/blocklayerhq/dagger/issues/19
dir: "/"
},
{
do: "export"
// Source path in the container
source: "/tmp/out"
format: "yaml"
},
test: #dagger: compute: [
{
do: "fetch-container"
ref: "alpine"
},
{
do: "exec"
args: ["sh", "-c", """
echo "--- # Shopping list
[milk, pumpkin pie, eggs, juice]" > /tmp/out
""",
]
}
}
// XXX Blocked by https://github.com/blocklayerhq/dagger/issues/19
dir: "/"
},
{
do: "export"
// Source path in the container
source: "/tmp/out"
format: "yaml"
},
]