Skip to content

Commit

Permalink
adjust python api build/start scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Lms24 committed Oct 16, 2024
1 parent e03f8c1 commit cb161d8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/node-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 2 additions & 1 deletion api-node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit cb161d8

Please sign in to comment.