diff --git a/scripts/run-from-container.sh b/scripts/run-from-container.sh index b9339ecaa..2cd4930b0 100755 --- a/scripts/run-from-container.sh +++ b/scripts/run-from-container.sh @@ -175,6 +175,7 @@ if command -v git &>/dev/null; then fi # Prepare container repo +args+=("--env" "APPS_PATH=${root}") args+=("--mount" "type=bind,src=${root},dst=${root}${relabel:-}") "${runtime}" run "${args[@]}" "${@}" diff --git a/tests/unit/general/schema.bats b/tests/unit/general/schema.bats index 059c6d78e..343d78f08 100644 --- a/tests/unit/general/schema.bats +++ b/tests/unit/general/schema.bats @@ -116,3 +116,13 @@ find_schemas() { refute_output } + +@test "documentation should be generated" { + pushd "${DOCS_PATH}" || exit 1 + + run "./scripts/jsonschema2md.sh" --path "${APPS_PATH}" + + popd || exit 1 + + assert_success +}