This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
dagger/tests/test-examples.sh

13 lines
365 B
Bash
Raw Normal View History

#!/usr/bin/env bash
set -o errexit -o errtrace -o functrace -o nounset -o pipefail
# Test Directory
d=$(cd "$(dirname "${BASH_SOURCE[0]:-$PWD}")" 2>/dev/null 1>&2 && pwd)
test::examples() {
local dagger="$1"
test::secret "$d"/examples/react/inputs.yaml "examples: React" --exit=0 \
"$dagger" "${DAGGER_BINARY_ARGS[@]}" compute "$d"/../examples/react
}