Test: add e2e tests (#297)
* add e2e test * add whisper & ffmpeg command validate test * remove tests-examples
This commit is contained in:
28
.github/workflows/playwright.yml
vendored
Normal file
28
.github/workflows/playwright.yml
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
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
|
||||
Reference in New Issue
Block a user