added test
Signed-off-by: Richard Jones <richard@dagger.io>
This commit is contained in:
parent
83b10d4031
commit
28cebb1bf0
11
tests/plan.bats
Normal file
11
tests/plan.bats
Normal file
@ -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!'
|
||||
}
|
14
tests/plan/hello-europa/main.cue
Normal file
14
tests/plan/hello-europa/main.cue
Normal file
@ -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!"
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user