mirror of
https://git.cloudron.io/cloudron/prometheus-server-app.git
synced 2024-05-12 17:52:39 +00:00
23 lines
284 B
Bash
23 lines
284 B
Bash
#!/bin/bash
|
|
|
|
set -eu
|
|
|
|
image=cloudron/basetest
|
|
|
|
function check_go() {
|
|
if ! docker run $image go version; then
|
|
return 1
|
|
fi
|
|
}
|
|
|
|
function check_node() {
|
|
if ! docker run $image node --version; then
|
|
return 1
|
|
fi
|
|
}
|
|
|
|
check_go
|
|
check_node
|
|
echo "All tests passed"
|
|
|