Skip to content

Commit

Permalink
only run video.test.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Aye Min Aung committed Dec 17, 2024
1 parent 5e45391 commit 096d106
Show file tree
Hide file tree
Showing 3 changed files with 87 additions and 6 deletions.
29 changes: 27 additions & 2 deletions .github/workflows/realtime-api-production-euswcom.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: RealtimeAPI SDK [production euswcom]

on:
push:
branches:
- 'min/run-only-video-test'
workflow_call:
workflow_dispatch:
schedule:
Expand Down Expand Up @@ -33,9 +36,31 @@ jobs:
PLAYWRIGHT_VERSION: '1.35.1' # TODO: Read from deps ?
- name: Test
id: run-tests
run: npm run -w=@sw-internal/e2e-realtime-api dev
run: npm run -w=@sw-internal/e2e-realtime-api dev:playwright
env:
SW_TEST_CONFIG: ${{ secrets.PRODUCTION_EUSWCOM_E2E_REALTIME_SW_TEST_CONFIG }}
SW_TEST_CONFIG: |
'{
"ignoreFiles": [
"chat.test.ts",
"messaging.test.ts",
"pubSub.test.ts",
"task.test.ts",
"utils.test.ts",
"voice.test.ts",
"voicePass.test.ts",
"voiceTapAllListeners.test.ts",
"playwright/videoHandRaise.test.ts"
],
"ignoreDirectories": ["voiceCollect", "voiceDetect", "voicePlayback", "voicePrompt", "voiceRecord"],
"env": {
"API_HOST": "ops.eu-signalwire.com",
"RELAY_HOST": "relay.eu-signalwire.com",
"RELAY_PROJECT": "07bbb6ca-07cb-410d-88a7-a3184afb3677",
"RELAY_TOKEN": "${{ fromJSON(secrets.PRODUCTION_EUSWCOM_E2E_REALTIME_SW_TEST_CONFIG).env.RELAY_TOKEN }}",
"DAPP_DOMAIN": "dapp.eu-signalwire.com",
"PLAYBACK_URL": "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ForBiggerBlazes.mp4"
}
}'
- name: Report Result
if: success() || failure()
uses: ./.github/actions/report-test-result
Expand Down
32 changes: 30 additions & 2 deletions .github/workflows/realtime-api-production.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: RealtimeAPI SDK [production]

on:
push:
branches:
- 'min/run-only-video-test'
workflow_call:
workflow_dispatch:
schedule:
Expand All @@ -18,7 +21,7 @@ jobs:
fail-fast: false # Continue other jobs if one fails
matrix:
node-version: [18.x]
test_command: ['dev:rtonly', 'dev:playwright']
test_command: ['dev:playwright']
steps:
- uses: actions/checkout@v4
- name: Install deps
Expand All @@ -37,7 +40,32 @@ jobs:
- name: Test
run: 'npm run -w=@sw-internal/e2e-realtime-api ${{ matrix.test_command }}'
env:
SW_TEST_CONFIG: ${{ secrets.PRODUCTION_E2E_REALTIME_SW_TEST_CONFIG }}
SW_TEST_CONFIG: |
'{
"ignoreFiles": [
"chat.test.ts",
"messaging.test.ts",
"pubSub.test.ts",
"task.test.ts",
"utils.test.ts",
"voice.test.ts",
"voicePass.test.ts",
"voiceTapAllListeners.test.ts",
"playwright/videoHandRaise.test.ts"
],
"ignoreDirectories": ["voiceCollect", "voiceDetect", "voicePlayback", "voicePrompt", "voiceRecord"],
"env": {
"API_HOST": "rtctests.signalwire.com",
"RELAY_HOST": "relay.signalwire.com",
"RELAY_PROJECT": "cb1e91b6-ae04-4be0-89ae-0dffc5ea6aed",
"RELAY_TOKEN": "${{ fromJSON(secrets.PRODUCTION_E2E_REALTIME_SW_TEST_CONFIG).env.RELAY_TOKEN }}",
"MESSAGING_FROM_NUMBER": "+12084375820",
"MESSAGING_TO_NUMBER": "+12084379431",
"MESSAGING_CONTEXT": "office",
"DAPP_DOMAIN": "dapp.signalwire.com",
"PLAYBACK_URL": "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4"
}
}'
report-result:
needs: e2e-tests
Expand Down
32 changes: 30 additions & 2 deletions .github/workflows/realtime-api-staging.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: RealtimeAPI SDK [staging]

on:
push:
branches:
- 'min/run-only-video-test'
workflow_call:
workflow_dispatch:
schedule:
Expand All @@ -18,7 +21,8 @@ jobs:
fail-fast: false # Continue other jobs if one fails
matrix:
node-version: [18.x]
test_command: ['dev:rtonly', 'dev:playwright']
# test_command: ['dev:rtonly', 'dev:playwright']
test_command: ['dev:playwright']
steps:
- uses: actions/checkout@v4
- name: Install deps
Expand All @@ -37,7 +41,31 @@ jobs:
- name: Test
run: 'npm run -w=@sw-internal/e2e-realtime-api ${{ matrix.test_command }}'
env:
SW_TEST_CONFIG: ${{ secrets.STAGING_E2E_REALTIME_SW_TEST_CONFIG }}
SW_TEST_CONFIG: |
'{
"ignoreFiles": [
"chat.test.ts",
"messaging.test.ts",
"pubSub.test.ts",
"task.test.ts",
"utils.test.ts",
"voice.test.ts",
"voicePass.test.ts",
"voiceTapAllListeners.test.ts",
"playwright/videoHandRaise.test.ts"
],
"env": {
"API_HOST": "dev.swire.io",
"RELAY_HOST": "relay.swire.io",
"RELAY_PROJECT": "78429ef1-283b-4fa9-8ebc-16b59f95bb1f",
"RELAY_TOKEN": "${{ fromJSON(secrets.STAGING_E2E_REALTIME_SW_TEST_CONFIG).env.RELAY_TOKEN }}",
"MESSAGING_FROM_NUMBER": "+10000000000",
"MESSAGING_TO_NUMBER": "+10000000001",
"MESSAGING_CONTEXT": "messaging-e2e",
"DAPP_DOMAIN": "dapp.swire.io",
"PLAYBACK_URL": "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4"
}
}'
report-result:
needs: e2e-tests
Expand Down

0 comments on commit 096d106

Please sign in to comment.