ci: Skip the scoped cli integration step when the DB matrix runs

The DB matrix's SQLite Pooled leg runs the full cli integration suite
with the same command and environment as the scoped step in the unit
workflow. Skip the scoped step on those runs. Master runs keep the
default and do not change.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Charlie Kolb 2026-09-01 14:12:52 +02:00
parent bcfdfa4252
commit b97ffe94df
No known key found for this signature in database
2 changed files with 13 additions and 1 deletions

View File

@ -211,6 +211,9 @@ jobs:
collectCoverage: ${{ github.event_name != 'merge_group' }}
affectedPackages: ${{ needs.install-and-build.outputs.affected_packages }}
changedFiles: ${{ needs.install-and-build.outputs.changed_files }}
# The DB matrix's "SQLite Pooled" leg runs the full cli integration
# suite with the same command and environment as the scoped step.
skipCliIntegration: ${{ needs.install-and-build.outputs.db == 'true' }}
secrets: inherit
typecheck:

View File

@ -33,6 +33,15 @@ on:
required: false
default: ''
type: string
skipCliIntegration:
description: |
Skip the scoped cli integration step. The PR workflow sets this when
the DB matrix runs: its "SQLite Pooled" leg runs the full cli
integration suite with the same command and environment, so the
scoped run here adds no coverage.
required: false
default: false
type: boolean
env:
NODE_OPTIONS: --max-old-space-size=7168
@ -136,7 +145,7 @@ jobs:
run: pnpm turbo test:integration --continue --concurrency=1 --filter='!./packages/frontend/**' --filter='!./packages/modules/**' --filter='!n8n' --summarize
- name: Test Integration (cli, scoped)
if: ${{ !cancelled() }}
if: ${{ !cancelled() && !inputs.skipCliIntegration }}
run: pnpm turbo test:integration:changed --filter=n8n --summarize
- name: Send Test Stats