From 1327db90c3c49e70190135db502ad4e5363320ee Mon Sep 17 00:00:00 2001 From: Pranav C Date: Tue, 26 Apr 2022 16:16:48 +0530 Subject: [PATCH] chore: install nocodb-sdk locally in CI/CD Signed-off-by: Pranav C --- .github/workflows/ci-cd.yml | 12 ++++++++++++ package.json | 1 + 2 files changed, 13 insertions(+) diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml index 88af4f801d..2bfa13470d 100644 --- a/.github/workflows/ci-cd.yml +++ b/.github/workflows/ci-cd.yml @@ -50,6 +50,7 @@ jobs: with: start: | npm run build:common + npm run install:common npm run start:api:cache npm run start:web docker-compose -f ./scripts/cypress/docker-compose-pg.yml up -d @@ -95,6 +96,7 @@ jobs: with: start: | npm run build:common + npm run install:common npm run start:api:cache npm run start:web docker-compose -f ./scripts/cypress/docker-compose-pg.yml up -d @@ -140,6 +142,7 @@ jobs: with: start: | npm run build:common + npm run install:common npm run start:api:cache npm run start:web docker-compose -f ./scripts/cypress/docker-compose-pg.yml up -d @@ -185,6 +188,7 @@ jobs: with: start: | npm run build:common + npm run install:common npm run start:api:cache npm run start:web docker-compose -f ./scripts/cypress/docker-compose-pg.yml up -d @@ -230,6 +234,7 @@ jobs: with: start: | npm run build:common + npm run install:common npm run start:api:cache npm run start:web docker-compose -f ./scripts/docker-compose-cypress.yml up -d @@ -275,6 +280,7 @@ jobs: with: start: | npm run build:common + npm run install:common npm run start:api:cache npm run start:web docker-compose -f ./scripts/docker-compose-cypress.yml up -d @@ -320,6 +326,7 @@ jobs: with: start: | npm run build:common + npm run install:common npm run start:api:cache npm run start:web docker-compose -f ./scripts/docker-compose-cypress.yml up -d @@ -365,6 +372,7 @@ jobs: with: start: | npm run build:common + npm run install:common npm run start:api:cache npm run start:web docker-compose -f ./scripts/docker-compose-cypress.yml up -d @@ -410,6 +418,7 @@ jobs: with: start: | npm run build:common + npm run install:common npm run start:xcdb-api:cache npm run start:web docker-compose -f ./scripts/docker-compose-cypress.yml up -d @@ -455,6 +464,7 @@ jobs: with: start: | npm run build:common + npm run install:common npm run start:xcdb-api:cache npm run start:web docker-compose -f ./scripts/docker-compose-cypress.yml up -d @@ -500,6 +510,7 @@ jobs: with: start: | npm run build:common + npm run install:common npm run start:xcdb-api:cache npm run start:web docker-compose -f ./scripts/docker-compose-cypress.yml up -d @@ -545,6 +556,7 @@ jobs: with: start: | npm run build:common + npm run install:common npm run start:xcdb-api:cache npm run start:web docker-compose -f ./scripts/docker-compose-cypress.yml up -d diff --git a/package.json b/package.json index 7783eef1cf..b22e825a96 100644 --- a/package.json +++ b/package.json @@ -14,6 +14,7 @@ }, "scripts": { "build:common": "cd ./packages/nocodb-sdk; npm install; npm run build", + "install:common": "cd ./packages/nocodb; npm install ../nocodb-sdk; cd ../nc-gui; npm install ../nocodb-sdk", "start:api": "cd ./packages/nocodb; npm install; NC_DISABLE_CACHE=true NC_DISABLE_TELE=true npm run watch:run:cypress", "start:xcdb-api": "cd ./packages/nocodb; npm install; NC_DISABLE_CACHE=true NC_DISABLE_TELE=true NC_INFLECTION=camelize DATABASE_URL=sqlite:../../../scripts/cypress/fixtures/sqlite-sakila/sakila.db npm run watch:run:cypress", "start:api:cache": "cd ./packages/nocodb; npm install; NC_DISABLE_TELE=true npm run watch:run:cypress",