Skip to content

Commit

Permalink
Update script of action
Browse files Browse the repository at this point in the history
  • Loading branch information
rolljee committed Dec 18, 2024
1 parent 47e63e7 commit 7ecf549
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 13 deletions.
3 changes: 2 additions & 1 deletion .github/actions/functional-test-backend/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
```

Expand Down
11 changes: 1 addition & 10 deletions start.sh
Original file line number Diff line number Diff line change
@@ -1,19 +1,10 @@
#!/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..."
npm run dev --prefix /var/app/apps/web -- --host
else
echo "Running npm run dev..."
npm run dev --prefix /var/app/apps/api
fi
fi

0 comments on commit 7ecf549

Please sign in to comment.