diff --git a/.github/workflows/server-parity.yml b/.github/workflows/server-parity.yml index 54eaaa326..228ed0f09 100644 --- a/.github/workflows/server-parity.yml +++ b/.github/workflows/server-parity.yml @@ -126,6 +126,11 @@ on: - tests/Support/ServerParityAdmissionObservation.mjs - tests/Support/ServerParityVisibilityObservation.mjs - rust/** + - tests/Fixtures/ActivityResultInspection/** + - tests/Fixtures/ServerParityReaders/** + - tests/Conformance/ServerParity*.mjs + - benchmarks/capacity/v1/bindings/php/** + - benchmarks/server-port/v2/matched.json merge_group: workflow_dispatch: diff --git a/tests/Unit/ServerParityAggregateTest.mjs b/tests/Unit/ServerParityAggregateTest.mjs index 81bca4c01..2e447327f 100644 --- a/tests/Unit/ServerParityAggregateTest.mjs +++ b/tests/Unit/ServerParityAggregateTest.mjs @@ -48,6 +48,16 @@ test('pull requests run without a path filter and push keeps the one path list', assert.doesNotMatch(pullRequest, /paths|branches/); const patterns = pushPathPatterns(workflowText); assert.ok(patterns.includes('rust/**')); + // Inputs the fixture jobs read outside the server-parity directories. + for (const input of [ + 'tests/Fixtures/ActivityResultInspection/v1.json', + 'tests/Fixtures/ServerParityReaders/sdk-signals.mjs', + 'tests/Conformance/ServerParityDeadlinePollTest.mjs', + 'benchmarks/capacity/v1/bindings/php/capacity_adapter.php', + 'benchmarks/server-port/v2/matched.json', + ]) { + assert.deepEqual(matchingFiles(patterns, [input]), [input], `${input} must re-run the fixtures`); + } assert.ok(patterns.includes('.github/workflows/server-parity.yml')); assert.ok(patterns.includes('scripts/conformance/server-parity/**')); });