chore: created GitHub actions to run tests

This commit is contained in:
Rohit T P
2024-05-02 22:59:23 +05:30
parent 97beba6be6
commit 0315016d95
13 changed files with 129 additions and 26 deletions

View File

@@ -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" {

View File

@@ -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" {

View File

@@ -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" {

View File

@@ -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" {

View File

@@ -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" {

View File

@@ -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" {