universe: spin out js/yarn tests

Signed-off-by: Solomon Hykes <solomon@dagger.io>
This commit is contained in:
Solomon Hykes
2021-06-10 10:50:49 +00:00
committed by Solomon Hykes
parent d388c729bc
commit 2976afad66
6 changed files with 31 additions and 4 deletions

View File

@@ -0,0 +1,26 @@
package react
import (
"dagger.io/dagger"
"dagger.io/js/yarn"
"dagger.io/alpine"
"dagger.io/os"
)
TestData: dagger.#Artifact
TestReact: {
pkg: yarn.#Package & {
source: TestData
}
test: os.#Container & {
image: alpine.#Image & {
package: bash: "=5.1.0-r0"
}
mount: "/build": from: pkg.build
command: """
test "$(cat /build/test)" = "output"
"""
}
}