File tree Expand file tree Collapse file tree 4 files changed +22
-16
lines changed Expand file tree Collapse file tree 4 files changed +22
-16
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ ---
Original file line number Diff line number Diff line change @@ -277,8 +277,7 @@ jobs:
277277 strategy :
278278 fail-fast : false
279279 matrix :
280- test-name :
281- [
280+ test-name : [
282281 ' generic' ,
283282 ' express' ,
284283 ' quickstart' ,
@@ -325,6 +324,15 @@ jobs:
325324 turbo-token : ${{ secrets.TURBO_TOKEN }}
326325 playwright-enabled : true
327326
327+ - name : Verify jq is installed
328+ shell : bash
329+ run : |
330+ if ! command -v jq &> /dev/null; then
331+ echo "jq not found, installing..."
332+ sudo apt-get update && sudo apt-get install -y jq
333+ fi
334+ jq --version
335+
328336 - name : Task Status
329337 id : task-status
330338 env :
@@ -334,8 +342,16 @@ jobs:
334342 E2E_PROJECT : ${{ matrix.test-project }}
335343 INTEGRATION_INSTANCE_KEYS : ${{ secrets.INTEGRATION_INSTANCE_KEYS }}
336344 run : |
337- AFFECTED=0
338- (pnpm turbo-ignore --task=test:integration:${{ matrix.test-name }} --fallback=${{ github.base_ref || 'refs/heads/main' }}) || AFFECTED=1
345+ # Use turbo's built-in --affected flag to detect changes
346+ # This automatically uses GITHUB_BASE_REF in GitHub Actions
347+ TASK_COUNT=$(pnpm turbo run test:integration:${{ matrix.test-name }} --affected --dry=json 2>/dev/null | jq '.tasks | length' 2>/dev/null || echo "0")
348+
349+ if [ "$TASK_COUNT" -gt 0 ]; then
350+ AFFECTED=1
351+ else
352+ AFFECTED=0
353+ fi
354+
339355 echo "affected=${AFFECTED}"
340356 echo "affected=${AFFECTED}" >> $GITHUB_OUTPUT
341357
Original file line number Diff line number Diff line change 140140 "ts-jest" : " 29.2.5" ,
141141 "tsup" : " catalog:repo" ,
142142 "turbo" : " ^2.5.4" ,
143- "turbo-ignore" : " ^2.5.4" ,
144143 "typedoc" : " 0.28.5" ,
145144 "typedoc-plugin-markdown" : " 4.6.4" ,
146145 "typedoc-plugin-replace-text" : " 4.2.0" ,
You can’t perform that action at this time.
0 commit comments