mirror of
https://github.com/nocodb/nocodb.git
synced 2026-04-27 05:05:06 +00:00
chore: created GitHub actions to run tests
This commit is contained in:
@@ -11,8 +11,12 @@ setup() {
|
||||
}
|
||||
|
||||
teardown() {
|
||||
cd "${WORKING_DIR}/configure" || exit 1
|
||||
./setup.sh
|
||||
if [ -n "$SKIP_TEARDOWN" ]; then
|
||||
return
|
||||
fi
|
||||
|
||||
cd "${WORKING_DIR}/install" || exit 1
|
||||
./setup.sh
|
||||
}
|
||||
|
||||
@test "Properly runs monitor script" {
|
||||
|
||||
@@ -11,8 +11,12 @@ setup() {
|
||||
}
|
||||
|
||||
teardown() {
|
||||
cd "${WORKING_DIR}/configure" || exit 1
|
||||
./setup.sh
|
||||
if [ -n "$SKIP_TEARDOWN" ]; then
|
||||
return
|
||||
fi
|
||||
|
||||
cd "${WORKING_DIR}/install" || exit 1
|
||||
./setup.sh
|
||||
}
|
||||
|
||||
@test "Check all containers are restarted" {
|
||||
|
||||
@@ -11,8 +11,12 @@ setup() {
|
||||
}
|
||||
|
||||
teardown() {
|
||||
cd "${WORKING_DIR}/configure" || exit 1
|
||||
./setup.sh
|
||||
if [ -n "$SKIP_TEARDOWN" ]; then
|
||||
return
|
||||
fi
|
||||
|
||||
cd "${WORKING_DIR}/install" || exit 1
|
||||
./setup.sh
|
||||
}
|
||||
|
||||
@test "Check NocoDB is scaled to 3 instances" {
|
||||
|
||||
@@ -11,8 +11,12 @@ setup() {
|
||||
}
|
||||
|
||||
teardown() {
|
||||
cd "${WORKING_DIR}/configure" || exit 1
|
||||
./setup.sh
|
||||
if [ -n "$SKIP_TEARDOWN" ]; then
|
||||
return
|
||||
fi
|
||||
|
||||
cd "${WORKING_DIR}/install" || exit 1
|
||||
./setup.sh
|
||||
}
|
||||
|
||||
@test "Check all containers are up" {
|
||||
|
||||
@@ -11,8 +11,12 @@ setup() {
|
||||
}
|
||||
|
||||
teardown() {
|
||||
cd "${WORKING_DIR}/configure" || exit 1
|
||||
./setup.sh
|
||||
if [ -n "$SKIP_TEARDOWN" ]; then
|
||||
return
|
||||
fi
|
||||
|
||||
cd "${WORKING_DIR}/install" || exit 1
|
||||
./setup.sh
|
||||
}
|
||||
|
||||
@test "Check all containers are down" {
|
||||
|
||||
@@ -11,8 +11,12 @@ setup() {
|
||||
}
|
||||
|
||||
teardown() {
|
||||
cd "${WORKING_DIR}/configure" || exit 1
|
||||
./setup.sh
|
||||
if [ -n "$SKIP_TEARDOWN" ]; then
|
||||
return
|
||||
fi
|
||||
|
||||
cd "${WORKING_DIR}/install" || exit 1
|
||||
./setup.sh
|
||||
}
|
||||
|
||||
@test "Check all containers are upgraded" {
|
||||
|
||||
@@ -6,13 +6,17 @@ export NOCO_HOME
|
||||
|
||||
|
||||
setup() {
|
||||
cd "${WORKING_DIR}/install" || exit 1
|
||||
./setup.sh
|
||||
cd "${WORKING_DIR}/install" || exit 1
|
||||
./setup.sh
|
||||
}
|
||||
|
||||
teardown() {
|
||||
cd "${WORKING_DIR}/install" || exit 1
|
||||
./setup.sh
|
||||
if [ -n "$SKIP_TEARDOWN" ]; then
|
||||
return
|
||||
fi
|
||||
|
||||
cd "${WORKING_DIR}/install" || exit 1
|
||||
./setup.sh
|
||||
}
|
||||
|
||||
@test "Check installation with all default options" {
|
||||
|
||||
@@ -11,8 +11,12 @@ setup() {
|
||||
}
|
||||
|
||||
teardown() {
|
||||
cd "${WORKING_DIR}/install" || exit 1
|
||||
./setup.sh
|
||||
if [ -n "$SKIP_TEARDOWN" ]; then
|
||||
return
|
||||
fi
|
||||
|
||||
cd "${WORKING_DIR}/install" || exit 1
|
||||
./setup.sh
|
||||
}
|
||||
|
||||
@test "Check installation with custom ip" {
|
||||
|
||||
@@ -11,8 +11,12 @@ setup() {
|
||||
}
|
||||
|
||||
teardown() {
|
||||
cd "${WORKING_DIR}/install" || exit 1
|
||||
./setup.sh
|
||||
if [ -n "$SKIP_TEARDOWN" ]; then
|
||||
return
|
||||
fi
|
||||
|
||||
cd "${WORKING_DIR}/install" || exit 1
|
||||
./setup.sh
|
||||
}
|
||||
|
||||
@test "Check Redis is enabled when specified" {
|
||||
|
||||
@@ -11,8 +11,12 @@ setup() {
|
||||
}
|
||||
|
||||
teardown() {
|
||||
cd "${WORKING_DIR}/install" || exit 1
|
||||
./setup.sh
|
||||
if [ -n "$SKIP_TEARDOWN" ]; then
|
||||
return
|
||||
fi
|
||||
|
||||
cd "${WORKING_DIR}/install" || exit 1
|
||||
./setup.sh
|
||||
}
|
||||
|
||||
@test "Check if two instances of NoCoDB can be run" {
|
||||
|
||||
@@ -10,8 +10,12 @@ setup() {
|
||||
}
|
||||
|
||||
teardown() {
|
||||
cd "${WORKING_DIR}/install" || exit 1
|
||||
./setup.sh
|
||||
if [ -n "$SKIP_TEARDOWN" ]; then
|
||||
return
|
||||
fi
|
||||
|
||||
cd "${WORKING_DIR}/install" || exit 1
|
||||
./setup.sh
|
||||
}
|
||||
|
||||
@test "Should create SSL certificates" {
|
||||
|
||||
@@ -9,8 +9,12 @@ setup() {
|
||||
}
|
||||
|
||||
teardown() {
|
||||
cd "${WORKING_DIR}/install" || exit 1
|
||||
./setup.sh
|
||||
if [ -n "$SKIP_TEARDOWN" ]; then
|
||||
return
|
||||
fi
|
||||
|
||||
cd "${WORKING_DIR}/install" || exit 1
|
||||
./setup.sh
|
||||
}
|
||||
|
||||
@test "Check WatchTower is enabled when specified" {
|
||||
|
||||
Reference in New Issue
Block a user