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

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

View File

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

View File

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

View File

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

View File

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

View File

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