Skip to content

fix(voice): wideband 16 kbps capture + disable mic gates that cut sof… #34

fix(voice): wideband 16 kbps capture + disable mic gates that cut sof…

fix(voice): wideband 16 kbps capture + disable mic gates that cut sof… #34

Workflow file for this run

name: Build & Verify
on:
push:
branches: [main]
tags: ['v*']
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'yarn'
- run: yarn install --frozen-lockfile
- run: yarn build:prod
- name: Verify SRI integrity attributes
run: |
node -e "
const html = require('fs').readFileSync('dist/index.html', 'utf-8');
const scripts = html.match(/<script\b[^>]*\bsrc=\"[^\"]+\"[^>]*>/g) || [];
const styles = html.match(/<link\b[^>]*rel=\"stylesheet\"[^>]*>/g) || [];
const tags = [...scripts, ...styles];
if (tags.length === 0) { console.error('No script/style tags found'); process.exit(1); }
const missing = tags.filter(t => !t.includes('integrity='));
if (missing.length > 0) {
console.error('Tags missing SRI integrity:');
missing.forEach(t => console.error(' ' + t));
process.exit(1);
}
console.log('SRI verified: ' + tags.length + ' tags have integrity attributes');
"
- uses: actions/upload-artifact@v4
with:
name: build-manifest
path: dist/build-manifest.json
release:
if: startsWith(github.ref, 'refs/tags/v')
needs: build
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/download-artifact@v4
with:
name: build-manifest
- uses: softprops/action-gh-release@v2
with:
files: build-manifest.json