Feat: bundle a default whisper model (#304)

* add scripts to download whisper model & ffmpeg wasm for bundle

* use default whisper model if no downloaded
This commit is contained in:
an-lee
2024-02-12 23:43:40 +08:00
committed by GitHub
parent b8011d20d7
commit 825031cc61
13 changed files with 312 additions and 69 deletions

View File

@@ -1,28 +0,0 @@
name: Playwright Tests
on: workflow_dispatch
jobs:
test:
timeout-minutes: 60
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-11, macos-12, macos-13, macos-latest, windows-latest, ubuntu-latest]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20
- name: Install dependencies
run: npm install -g yarn && yarn
# - name: Install Playwright Browsers
# run: yarn playwright install --with-deps
- name: Package
run: yarn package:enjoy
- name: Run Playwright tests
run: yarn test:enjoy
- uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30

36
.github/workflows/test-enjoy-app.yml vendored Normal file
View File

@@ -0,0 +1,36 @@
name: Test Enjoy App
on: workflow_dispatch
jobs:
test:
timeout-minutes: 60
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
[
macos-11,
macos-12,
macos-13,
macos-latest,
windows-latest,
ubuntu-latest,
]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20
- name: Install dependencies
run: npm install -g yarn && yarn
- name: Install Playwright Browsers
run: yarn playwright install --with-deps
- name: Package
run: yarn package:enjoy
- name: Run Playwright tests
run: yarn test:enjoy
- uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30