-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into unmount-video-element
- Loading branch information
Showing
37 changed files
with
758 additions
and
156 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
name: Egress Composite E2E | ||
on: | ||
pull_request: | ||
types: | ||
- opened | ||
- synchronize | ||
- reopened | ||
paths: | ||
- 'sample-apps/react/egress-composite/**' | ||
- 'packages/client/**' | ||
- 'packages/react-sdk/**' | ||
- 'packages/styling/**' | ||
- 'packages/react-bindings/**' | ||
env: | ||
VITE_STREAM_API_KEY: ${{ vars.EGRESS_STREAM_API_KEY }} | ||
VITE_STREAM_USER_TOKEN: ${{ secrets.EGRESS_USER_TOKEN }} | ||
STREAM_SDK_TEST_APP: ${{ secrets.STREAM_SDK_TEST_APP }} | ||
STREAM_SDK_TEST_ACCOUNT_EMAIL: ${{ secrets.STREAM_SDK_TEST_ACCOUNT_EMAIL }} | ||
STREAM_SDK_TEST_ACCOUNT_PASSWORD: ${{ secrets.STREAM_SDK_TEST_ACCOUNT_PASSWORD }} | ||
STREAM_SDK_TEST_ACCOUNT_OTP_SECRET: ${{ secrets.STREAM_SDK_TEST_ACCOUNT_OTP_SECRET }} | ||
|
||
jobs: | ||
test: | ||
timeout-minutes: 15 | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 1 | ||
|
||
- name: Setup Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18.x | ||
cache: 'yarn' | ||
cache-dependency-path: 'yarn.lock' | ||
|
||
- name: Install dependencies | ||
run: yarn install --immutable | ||
|
||
- name: Build packages | ||
env: | ||
NODE_ENV: production | ||
run: yarn build:react:deps | ||
|
||
- name: Cache Playwright browsers | ||
uses: actions/cache@v3 | ||
id: playwright-cache | ||
with: | ||
path: ~/.cache/ms-playwright | ||
key: ${{ runner.os }}${{ runner.arch }}-playwright-browsers | ||
|
||
- name: Install Playwright browsers if not cached | ||
if: steps.playwright-cache.outputs.cache-hit != 'true' | ||
run: npx playwright install chromium | ||
|
||
- name: Install Playwright system dependencies (always) | ||
run: npx playwright install-deps | ||
|
||
- name: Run Playwright tests | ||
working-directory: sample-apps/react/egress-composite | ||
run: yarn buddy auth && yarn test:e2e |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "@stream-io/video-client", | ||
"version": "0.3.19", | ||
"version": "0.3.20", | ||
"packageManager": "[email protected]", | ||
"main": "dist/index.cjs.js", | ||
"module": "dist/index.es.js", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "@stream-io/video-react-bindings", | ||
"version": "0.2.20", | ||
"version": "0.2.21", | ||
"packageManager": "[email protected]", | ||
"main": "./dist/index.js", | ||
"types": "./dist/index.d.ts", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "@stream-io/video-react-native-sdk", | ||
"version": "0.0.17", | ||
"version": "0.0.18", | ||
"packageManager": "[email protected]", | ||
"main": "dist/commonjs/index.js", | ||
"module": "dist/module/index.js", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "@stream-io/video-react-sdk", | ||
"version": "0.3.23", | ||
"version": "0.3.24", | ||
"packageManager": "[email protected]", | ||
"main": "./dist/index.js", | ||
"types": "./dist/index.d.ts", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,3 +23,6 @@ dist-ssr | |
*.sln | ||
*.sw? | ||
.vercel | ||
/test-results/ | ||
/playwright-report/ | ||
/playwright/.cache/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
import { defineConfig } from '@playwright/test'; | ||
|
||
/** | ||
* See https://playwright.dev/docs/test-configuration. | ||
*/ | ||
export default defineConfig({ | ||
testDir: './tests', | ||
fullyParallel: true, | ||
retries: process.env.CI ? 2 : 0, | ||
workers: process.env.CI ? 1 : undefined, | ||
reporter: 'list', | ||
// custom path to omit architecture/system from file name (darwin-amd64/darwin-arm64/linux-amd64...) | ||
snapshotPathTemplate: './tests/__screenshots__/{testFilePath}/{arg}{ext}', | ||
expect: { | ||
toHaveScreenshot: { | ||
// to account for CI headless | ||
maxDiffPixelRatio: 0.05, | ||
}, | ||
}, | ||
use: { | ||
headless: !!process.env.CI, | ||
trace: 'on-first-retry', | ||
viewport: { width: 1920, height: 1080 }, | ||
baseURL: 'http://localhost:5173', | ||
// TODO: find out why custom data-test-id does not work | ||
// testIdAttribute: 'data-testid', | ||
}, | ||
webServer: [ | ||
{ | ||
timeout: 10000, | ||
command: 'yarn buddy server --port 4567', | ||
reuseExistingServer: false, | ||
port: 4567, | ||
}, | ||
{ | ||
timeout: 10000, | ||
command: 'yarn dev', | ||
reuseExistingServer: false, | ||
port: 5173, | ||
}, | ||
], | ||
}); |
Oops, something went wrong.