diff --git a/.github/workflows/dev-build.yml b/.github/workflows/dev-build.yml index c022f7f1..880f6552 100644 --- a/.github/workflows/dev-build.yml +++ b/.github/workflows/dev-build.yml @@ -127,8 +127,8 @@ jobs: - name: Install dependencies run: pnpm install --frozen-lockfile - - name: Verify bundled record MP3 transcode - run: pnpm --filter @snowluma/protocol test:native-audio + - name: Run native smoke tests + run: pnpm test:native # Always builds the WebUI flavor — no separate "core-only" artifact. - name: Build project diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f18332b1..fee1f9bb 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -45,8 +45,8 @@ jobs: - name: Install dependencies run: pnpm install --frozen-lockfile - - name: Verify bundled record MP3 transcode - run: pnpm --filter @snowluma/protocol test:native-audio + - name: Run native smoke tests + run: pnpm test:native # Always builds the WebUI flavor — no separate "core-only" artifact. - name: Build project diff --git a/package.json b/package.json index ff0578e5..ede48e17 100644 --- a/package.json +++ b/package.json @@ -18,6 +18,7 @@ "test:watch": "pnpm --filter @snowluma/core test:watch", "test:common": "pnpm --filter @snowluma/common test", "test:all": "pnpm -r --if-present test", + "test:native": "pnpm -r --if-present test:native", "coverage": "pnpm --filter @snowluma/common test -- --coverage", "typecheck": "pnpm -r --if-present typecheck", "lint": "eslint .", diff --git a/packages/protocol/package.json b/packages/protocol/package.json index 43bd4902..c1f41527 100644 --- a/packages/protocol/package.json +++ b/packages/protocol/package.json @@ -91,7 +91,7 @@ }, "scripts": { "test": "vitest run", - "test:native-audio": "vitest run tests/highway/audio-transcode-native.test.ts", + "test:native": "vitest run tests/native", "bench": "vitest bench --run", "typecheck": "tsc --noEmit" }, diff --git a/packages/protocol/tests/highway/audio-transcode.test.ts b/packages/protocol/tests/highway/audio-transcode.test.ts index 072ca04e..92e67e74 100644 --- a/packages/protocol/tests/highway/audio-transcode.test.ts +++ b/packages/protocol/tests/highway/audio-transcode.test.ts @@ -6,7 +6,7 @@ import { AUDIO_OUT_FORMATS, convertAudioBytes, isAudioOutFormat } from '@snowlum // convertAudioBytes is the pure (#165) transcode seam: write input → the // addon's dedicated audio transcoder → read output as base64 → always clean up -// temp files. Unit tests inject a fake; audio-transcode-native.test.ts covers +// temp files. Unit tests inject a fake; native/audio-transcode.test.ts covers // each bundled release-platform addon in the build matrices. const tmpDir = mkdtempSync(path.join(os.tmpdir(), 'sl-audio-test-')); diff --git a/packages/protocol/tests/highway/audio-transcode-native.test.ts b/packages/protocol/tests/native/audio-transcode.test.ts similarity index 98% rename from packages/protocol/tests/highway/audio-transcode-native.test.ts rename to packages/protocol/tests/native/audio-transcode.test.ts index 345e44a8..d0cf2f5e 100644 --- a/packages/protocol/tests/highway/audio-transcode-native.test.ts +++ b/packages/protocol/tests/native/audio-transcode.test.ts @@ -61,7 +61,7 @@ const describeBundledAddon = isReleaseTarget ? describe : describe.skip; -describeBundledAddon('bundled ffmpeg addon', () => { +describeBundledAddon('bundled native ffmpeg addon', () => { let tmpDir: string; beforeAll(() => { tmpDir = mkdtempSync(path.join(os.tmpdir(), 'sl-native-audio-test-'));