Browse Source

Merge pull request #8421 from nocodb/8333-ops-auto-upstall-script-enhancements

NocoDB installation folder changed to current directory
pull/8428/head
navi 6 months ago committed by GitHub
parent
commit
448973c8d3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 12
      .github/workflows/bats-test.yml
  2. 2
      docker-compose/setup-script/noco.sh
  3. 2
      docker-compose/setup-script/tests/configure/monitor.bats
  4. 2
      docker-compose/setup-script/tests/configure/restart.bats
  5. 2
      docker-compose/setup-script/tests/configure/scale.bats
  6. 2
      docker-compose/setup-script/tests/configure/setup.sh
  7. 2
      docker-compose/setup-script/tests/configure/start.bats
  8. 2
      docker-compose/setup-script/tests/configure/stop.bats
  9. 2
      docker-compose/setup-script/tests/configure/upgrade.bats
  10. 2
      docker-compose/setup-script/tests/install/default.bats
  11. 2
      docker-compose/setup-script/tests/install/ip.bats
  12. 2
      docker-compose/setup-script/tests/install/redis.bats
  13. 2
      docker-compose/setup-script/tests/install/scale.bats
  14. 2
      docker-compose/setup-script/tests/install/setup.sh
  15. 2
      docker-compose/setup-script/tests/install/watchtower.bats

12
.github/workflows/bats-test.yml

@ -15,25 +15,19 @@ jobs:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Install jq
run: |
sudo apt-get update
sudo apt-get install -y jq
- name: Prepare matrix for test files - name: Prepare matrix for test files
id: set-matrix id: set-matrix
run: | run: |
BATS_FILES=$(find docker-compose/setup-script/tests -name '*.bats') BATS_FILES=$(find docker-compose/setup-script/tests -name '*.bats')
MATRIX_JSON=$(echo $BATS_FILES | jq -Rsc 'split("\n") | map(select(. != ""))') MATRIX_JSON=$(echo $BATS_FILES | tr -d '\n' | jq -Rsc 'split(" ")' | tr '"' "'")
echo "matrix=$MATRIX_JSON" >> $GITHUB_ENV echo "matrix=$MATRIX_JSON" >> $GITHUB_OUTPUT
test: test:
needs: prepare needs: prepare
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
test: ${{fromJson(env.matrix)}} test: ${{fromJson(needs.prepare.outputs.matrix)}}
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v4 uses: actions/checkout@v4

2
docker-compose/setup-script/noco.sh

@ -14,7 +14,7 @@ ORANGE='\033[0;33m'
BOLD='\033[1m' BOLD='\033[1m'
NC='\033[0m' NC='\033[0m'
NOCO_HOME="${HOME}/.nocodb" NOCO_HOME="./nocodb"
# ***************** GLOBAL VARIABLES END *********************************** # ***************** GLOBAL VARIABLES END ***********************************
# ****************************************************************************** # ******************************************************************************

2
docker-compose/setup-script/tests/configure/monitor.bats

@ -1,6 +1,6 @@
#!/usr/bin/env bats #!/usr/bin/env bats
NOCO_HOME="${HOME}/.nocodb" NOCO_HOME="./nocodb"
export NOCO_HOME export NOCO_HOME

2
docker-compose/setup-script/tests/configure/restart.bats

@ -1,6 +1,6 @@
#!/usr/bin/env bats #!/usr/bin/env bats
NOCO_HOME="${HOME}/.nocodb" NOCO_HOME="./nocodb"
export NOCO_HOME export NOCO_HOME

2
docker-compose/setup-script/tests/configure/scale.bats

@ -1,6 +1,6 @@
#!/usr/bin/env bats #!/usr/bin/env bats
NOCO_HOME="${HOME}/.nocodb" NOCO_HOME="./nocodb"
export NOCO_HOME export NOCO_HOME

2
docker-compose/setup-script/tests/configure/setup.sh

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
if [ -z "$NOCO_HOME" ]; then if [ -z "$NOCO_HOME" ]; then
NOCO_HOME="${HOME}/.nocodb" NOCO_HOME="./nocodb"
fi fi
if [ -d "$NOCO_HOME" ]; then if [ -d "$NOCO_HOME" ]; then

2
docker-compose/setup-script/tests/configure/start.bats

@ -1,6 +1,6 @@
#!/usr/bin/env bats #!/usr/bin/env bats
NOCO_HOME="${HOME}/.nocodb" NOCO_HOME="./nocodb"
export NOCO_HOME export NOCO_HOME

2
docker-compose/setup-script/tests/configure/stop.bats

@ -1,6 +1,6 @@
#!/usr/bin/env bats #!/usr/bin/env bats
NOCO_HOME="${HOME}/.nocodb" NOCO_HOME="./nocodb"
export NOCO_HOME export NOCO_HOME

2
docker-compose/setup-script/tests/configure/upgrade.bats

@ -1,6 +1,6 @@
#!/usr/bin/env bats #!/usr/bin/env bats
NOCO_HOME="${HOME}/.nocodb" NOCO_HOME="./nocodb"
export NOCO_HOME export NOCO_HOME

2
docker-compose/setup-script/tests/install/default.bats

@ -1,6 +1,6 @@
#!/usr/bin/env bats #!/usr/bin/env bats
NOCO_HOME="${HOME}/.nocodb" NOCO_HOME="./nocodb"
export NOCO_HOME export NOCO_HOME

2
docker-compose/setup-script/tests/install/ip.bats

@ -1,6 +1,6 @@
#!/usr/bin/env bats #!/usr/bin/env bats
NOCO_HOME="${HOME}/.nocodb" NOCO_HOME="./nocodb"
export NOCO_HOME export NOCO_HOME

2
docker-compose/setup-script/tests/install/redis.bats

@ -1,6 +1,6 @@
#!/usr/bin/env bats #!/usr/bin/env bats
NOCO_HOME="${HOME}/.nocodb" NOCO_HOME="./nocodb"
export NOCO_HOME export NOCO_HOME

2
docker-compose/setup-script/tests/install/scale.bats

@ -1,6 +1,6 @@
#!/usr/bin/env bats #!/usr/bin/env bats
NOCO_HOME="${HOME}/.nocodb" NOCO_HOME="./nocodb"
export NOCO_HOME export NOCO_HOME

2
docker-compose/setup-script/tests/install/setup.sh

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
if [ -z "$NOCO_HOME" ]; then if [ -z "$NOCO_HOME" ]; then
NOCO_HOME="${HOME}/.nocodb" NOCO_HOME="./nocodb"
fi fi
if [ -d "$NOCO_HOME" ]; then if [ -d "$NOCO_HOME" ]; then

2
docker-compose/setup-script/tests/install/watchtower.bats

@ -1,6 +1,6 @@
#!/usr/bin/env bats #!/usr/bin/env bats
NOCO_HOME="${HOME}/.nocodb" NOCO_HOME="./nocodb"
export NOCO_HOME export NOCO_HOME
setup() { setup() {

Loading…
Cancel
Save