test: benchmark safe server-side audio level correction #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Audio Quality | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| paths: | |
| - "apps/media-server/**" | |
| - "scripts/benchmark-*audio*.py" | |
| - ".github/workflows/audio-quality.yml" | |
| push: | |
| branches: [main] | |
| paths: | |
| - "apps/media-server/**" | |
| - "scripts/benchmark-*audio*.py" | |
| - ".github/workflows/audio-quality.yml" | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: audio-quality-${{ github.head_ref || github.ref_name }} | |
| cancel-in-progress: true | |
| jobs: | |
| audio-quality: | |
| name: Audio quality on Linux | |
| runs-on: ubuntu-24.04 | |
| container: oven/bun:1.4.0 | |
| timeout-minutes: 10 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install FFmpeg | |
| run: apt-get update && apt-get install -y --no-install-recommends ffmpeg | |
| - name: Install media server dependencies | |
| working-directory: apps/media-server | |
| run: bun install --frozen-lockfile --production | |
| - name: Record media runtime versions | |
| run: | | |
| bun --version | |
| ffmpeg -version | |
| - name: Verify audio quality and source preservation | |
| working-directory: apps/media-server | |
| run: | | |
| bun test \ | |
| src/__tests__/lib/audio-quality-policy.test.ts \ | |
| src/__tests__/lib/audio-quality.integration.test.ts |