Skip to content

Commit dd55b68

Browse files
committed
update workflow to run tests without stalling
1 parent 9892c89 commit dd55b68

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

.github/workflows/build-images.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,11 +254,12 @@ jobs:
254254

255255
- name: Run linting for ${{ matrix.service }}
256256
if: steps.changes.outputs.needs_build == 'true'
257-
run: yarn turbo run lint --filter=${{ matrix.service }}
257+
run: yarn turbo run lint --filter=${{ matrix.service }} --only
258258

259259
- name: Run tests for ${{ matrix.service }}
260260
if: steps.changes.outputs.needs_build == 'true'
261-
run: yarn turbo run test --filter=${{ matrix.service }} -- -- --watchAll=false
261+
run: yarn turbo run test --filter=${{ matrix.service }} --only -- -- --watchAll=false
262+
timeout-minutes: 10
262263

263264
build-and-deploy:
264265
name: Build & Deploy - ${{ matrix.service }}

apps/api-gateway/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"start:debug": "yarn start --debug --watch",
1818
"start:dev": "yarn start --watch",
1919
"start:prod": "node dist/main",
20-
"test": "jest --detectOpenHandles",
20+
"test": "jest",
2121
"test:cov": "jest --coverage",
2222
"test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
2323
"test:e2e": "jest --config ./test/jest-e2e.json",

apps/api/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"start:debug": "yarn start --debug --watch",
1818
"start:dev": "yarn start --watch",
1919
"start:prod": "node dist/main",
20-
"test": "jest --detectOpenHandles",
20+
"test": "jest",
2121
"test:cov": "jest --coverage",
2222
"test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
2323
"test:e2e": "jest --config ./test/jest-e2e.json",

apps/web/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"prestart": "yarn download-models",
1515
"prebuild": "yarn download-models",
1616
"start": "next start",
17-
"test": "jest --detectOpenHandles",
17+
"test": "jest",
1818
"test:watch": "jest --watch",
1919
"test:coverage": "jest --coverage"
2020
},

0 commit comments

Comments
 (0)