Skip to content

Commit e762cce

Browse files
committed
fix(ci): serialize npm publish test run
1 parent 99fb224 commit e762cce

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/npm-publish.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,9 @@ jobs:
130130
run: npm run verify:sidecar:signatures -- --contract-only
131131

132132
- name: Run tests
133-
run: npm test
133+
# Release CI is intentionally serialized here because the parallel Jest
134+
# worker pool can trigger broken stdout pipes in spawned Node CLIs.
135+
run: npx jest --runInBand
134136

135137
- name: Publish to npm
136138
run: npm publish

src/sbom.attestation.policy.contract.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ describe('sbom attestation policy contract', () => {
129129
expect(npmPublishWorkflow).toContain('NOTE_CONNECTION_SBOM_ATTESTATION_VERIFY_TRANSPARENCY_LOG_INCLUSION');
130130
expect(npmPublishWorkflow).toContain('NOTE_CONNECTION_SBOM_ATTESTATION_TRANSPARENCY_EXPECT_SCHEMA');
131131
expect(npmPublishWorkflow).toContain('NOTE_CONNECTION_SBOM_ATTESTATION_TRANSPARENCY_EXPECT_VERSION');
132+
expect(npmPublishWorkflow).toContain('npx jest --runInBand');
132133
});
133134

134135
test('attestation generator and verifier work in unsigned strict policy mode', () => {

0 commit comments

Comments
 (0)