basic tests for alpine go and yarn
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
This commit is contained in:
35
tests/stdlib/yarn/yarn.cue
Normal file
35
tests/stdlib/yarn/yarn.cue
Normal file
@@ -0,0 +1,35 @@
|
||||
package yarn
|
||||
|
||||
import (
|
||||
"dagger.io/dagger"
|
||||
"dagger.io/yarn"
|
||||
"dagger.io/alpine"
|
||||
)
|
||||
|
||||
TestData: dagger.#Dir
|
||||
|
||||
TestYarn: {
|
||||
run: yarn.#Script & {
|
||||
source: TestData
|
||||
}
|
||||
|
||||
test: #dagger: compute: [
|
||||
dagger.#Load & {from: alpine.#Image & {
|
||||
package: bash: "=5.1.0-r0"
|
||||
}},
|
||||
dagger.#Exec & {
|
||||
mount: "/build": from: run
|
||||
args: [
|
||||
"/bin/bash",
|
||||
"--noprofile",
|
||||
"--norc",
|
||||
"-eo",
|
||||
"pipefail",
|
||||
"-c",
|
||||
"""
|
||||
test "$(cat /build/test)" = "output"
|
||||
""",
|
||||
]
|
||||
},
|
||||
]
|
||||
}
|
Reference in New Issue
Block a user