Skip to content

Commit

Permalink
整理
Browse files Browse the repository at this point in the history
  • Loading branch information
voluntas committed Feb 21, 2024
1 parent 7c60d01 commit 0713bb6
Show file tree
Hide file tree
Showing 42 changed files with 870 additions and 642 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/e2e-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: e2e-test

on:
push:
pull_request:

jobs:
e2e-tset:
timeout-minutes: 60
runs-on: ubuntu-latest
strategy:
matrix:
node: ["18", "20", "21"]
browser: ["chromium", "firefox", "webkit"]
env:
VITE_SORA_SIGNALING_URL: ${{ secrets.TEST_SIGNALING_URL }}
VITE_SORA_CHANNEL_ID_PREFIX: ${{ secrets.TEST_CHANNEL_ID_PREFIX }}
VITE_ACESSS_TOKEN: ${{ secrets.TEST_SECRET_KEY }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- uses: pnpm/action-setup@v3
with:
version: 8
- run: pnpm --version
- run: pnpm install
- run: pnpm exec playwright install --with-deps
- run: pnpm run build
- run: pnpm exec playwright test --project=${{ matrix.browser }}
- uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30
- name: Slack Notification
if: failure()
uses: rtCamp/action-slack-notify@v2
env:
SLACK_CHANNEL: sora-js-sdk
SLACK_COLOR: danger
SLACK_TITLE: Failure test
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,8 @@ packages/e2ee/_worker
apidoc/
.log/
dist/
.env*
.env*
/test-results/
/playwright-report/
/blob-report/
/playwright/.cache/
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,6 @@
"editor.codeActionsOnSave": {
"quickfix.biome": "explicit",
"source.organizeImports.biome": "explicit"
}
},
"cSpell.words": ["remotevideo"]
}
3 changes: 3 additions & 0 deletions env.local.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
VITE_SORA_SIGNALING_URL=wss://sora.example.com/signaling
VITE_SORA_CHANNEL_ID_PREFIX=sora-js-sdk-e2e-test_
VITE_ACCESS_TOKEN=access_token
22 changes: 0 additions & 22 deletions example/README.md

This file was deleted.

107 changes: 0 additions & 107 deletions example/data_channel_messaging.html

This file was deleted.

99 changes: 0 additions & 99 deletions example/e2ee.html

This file was deleted.

62 changes: 0 additions & 62 deletions example/recvonly.html

This file was deleted.

Loading

0 comments on commit 0713bb6

Please sign in to comment.