mirror of
https://github.com/n8n-io/n8n.git
synced 2026-10-19 16:55:02 +02:00
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:
parent
bcfdfa4252
commit
b97ffe94df
3
.github/workflows/ci-pull-requests.yml
vendored
3
.github/workflows/ci-pull-requests.yml
vendored
|
|
@ -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:
|
||||
|
|
|
|||
11
.github/workflows/test-unit-reusable.yml
vendored
11
.github/workflows/test-unit-reusable.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user