From cb161d8aa57a62de6353c0a7e416dcab94b113e2 Mon Sep 17 00:00:00 2001 From: Lukas Stracke Date: Wed, 16 Oct 2024 17:05:36 +0200 Subject: [PATCH] adjust python api build/start scripts --- .github/workflows/node-api.yml | 6 +++--- api-node/package.json | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/node-api.yml b/.github/workflows/node-api.yml index bee7fae1e..897ef525f 100644 --- a/.github/workflows/node-api.yml +++ b/.github/workflows/node-api.yml @@ -111,8 +111,8 @@ jobs: - name: Install dependencies working-directory: ./api-node run: yarn install --frozen-lockfile + - name: Build Python API + run: yarn python-api:build - name: Run e2e tests working-directory: ./api-node - run: | - yarn start:python-api & - yarn test:e2e + run: yarn python-api:start && yarn test:e2e diff --git a/api-node/package.json b/api-node/package.json index 9ab5261d3..c3bb4112c 100644 --- a/api-node/package.json +++ b/api-node/package.json @@ -18,7 +18,8 @@ "test:cov": "jest --coverage", "test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand", "test:e2e": "jest --config ./test/jest-e2e.json", - "start:python-api": "docker build -t registry-api-server ../ && docker run -p 5031:5030 registry-api-server" + "python-api:build": "docker build -t registry-api-server ../", + "python-api:start": "docker run -d -p 5031:5030 registry-api-server" }, "dependencies": { "@nestjs/common": "^10.0.0",