diff --git a/.github/actions/functional-test-backend/action.yml b/.github/actions/functional-test-backend/action.yml index 9495b36..e02c0d1 100644 --- a/.github/actions/functional-test-backend/action.yml +++ b/.github/actions/functional-test-backend/action.yml @@ -9,9 +9,10 @@ runs: set +e npm ci export CI=true + docker compose run --rm kuzzle npm install docker compose up -d bash ./.github/actions/functional-test-backend/wait-kuzzle.sh - npm run test:functional + docker compose exec api npm run test:functional exitcode="$?" [[ "$exitcode" == "0" ]] || docker compose logs api exit "$exitcode" diff --git a/README.md b/README.md index 103d2e1..2560e76 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ This is a product under license that require private packages in order to work. ## Installation and run Requirement: - - Node.js = 18 + - Node.js >= 18 - NPM = 10.1.0 - Docker - Docker-Compose @@ -36,13 +36,14 @@ This turborepo uses [npm](https://www.npmjs.com/) as a package manager. It inclu ### Install dependencies -Log to Kuzzle npm private repository : https://docs.kuzzle.io/paas-console/1/guides/access-private-plugins/ +Log to Kuzzle npm private repository : https://docs.kuzzle.io/paas-console/1/guides/access-private-plugins/ Go to the repository root and run `npm install` ### Run the stack ```bash +docker compose run --rm api npm install docker compose up -d ``` diff --git a/start.sh b/start.sh index 0c5824b..f8e06cd 100755 --- a/start.sh +++ b/start.sh @@ -1,14 +1,5 @@ #!/bin/bash -echo "$CI" - -if [ "$CI" != "true" ] && [ ! -d "node_modules" ]; then - echo "node_modules directory not found. Installing dependencies from..." - npm ci -fi - -echo "Starting application $1..." - # Run the npm run dev command if [ "$1" = "web" ]; then echo "Running npm run dev with host..." @@ -16,4 +7,4 @@ if [ "$1" = "web" ]; then else echo "Running npm run dev..." npm run dev --prefix /var/app/apps/api -fi \ No newline at end of file +fi