Files
troubleshoot/test/run-examples.sh
Evans Mungai f64d98b5c3 feat(examples): loading troubleshoot specs from helm chart example (#1252)
* feat(examples): loading troubleshoot specs from helm chart example
2023-06-29 13:31:59 +12:00

16 lines
436 B
Bash
Executable File

#!/usr/bin/env bash
set -eu # exit in error, exit if vars not set
# TODO: When we add more examples, we should add some logic here to find all
# directories with a go.mod file and run the main.go application there
function run() {
local EXAMPLE_PATH=$1
pushd $EXAMPLE_PATH > /dev/null
echo "Running \"$EXAMPLE_PATH\" example"
go mod tidy && go run main.go
popd > /dev/null
}
run examples/sdk/helm-template/