tests: move tests top-level
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
This commit is contained in:
1
tests/exec/undefined/with_pkg_def/cue.mod/module.cue
Normal file
1
tests/exec/undefined/with_pkg_def/cue.mod/module.cue
Normal file
@@ -0,0 +1 @@
|
||||
module: "dagger.cloud/testing"
|
@@ -0,0 +1,19 @@
|
||||
package def
|
||||
|
||||
#dang: string
|
||||
|
||||
#dagger: {
|
||||
compute: [
|
||||
{
|
||||
do: "fetch-container"
|
||||
ref: "alpine"
|
||||
},
|
||||
{
|
||||
do: "exec"
|
||||
dir: "/"
|
||||
args: ["sh", "-c", """
|
||||
echo success
|
||||
"""]
|
||||
},
|
||||
]
|
||||
}
|
14
tests/exec/undefined/with_pkg_def/main.cue
Normal file
14
tests/exec/undefined/with_pkg_def/main.cue
Normal file
@@ -0,0 +1,14 @@
|
||||
package testing
|
||||
|
||||
import (
|
||||
"dagger.cloud/def"
|
||||
)
|
||||
|
||||
#dagger: {
|
||||
compute: [
|
||||
{
|
||||
do: "load",
|
||||
from: def
|
||||
},
|
||||
]
|
||||
}
|
Reference in New Issue
Block a user