diff --git a/tests/plan.bats b/tests/plan.bats new file mode 100644 index 00000000..71810688 --- /dev/null +++ b/tests/plan.bats @@ -0,0 +1,11 @@ +setup() { + load 'helpers' + + common_setup +} + +@test "plan: hello" { + run dagger --no-cache --europa up ./plan/hello-europa + assert_success + assert_output --partial 'Hello Europa!' +} \ No newline at end of file diff --git a/tests/plan/hello-europa/main.cue b/tests/plan/hello-europa/main.cue new file mode 100644 index 00000000..615590a7 --- /dev/null +++ b/tests/plan/hello-europa/main.cue @@ -0,0 +1,14 @@ +package main + +import ( + "alpha.dagger.io/dagger/engine" + "alpha.dagger.io/os" +) + +engine.#Plan & { + actions: { + sayHello: os.#Container & { + command: "echo Hello Europa!" + } + } +} \ No newline at end of file