feat(client): add E2EE support via WebRTC Encoded Transforms #2769
This file contains hidden or 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
| 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 }} | |
| jobs: | |
| test: | |
| timeout-minutes: 20 | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 1 | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 24.x | |
| cache: 'yarn' | |
| cache-dependency-path: 'yarn.lock' | |
| - name: Install dependencies | |
| run: yarn install --immutable | |
| - name: Resolve Playwright version | |
| id: playwright-version | |
| run: | | |
| PLAYWRIGHT_VERSION=$(yarn workspace @stream-io/egress-composite exec node -p 'require("@playwright/test/package.json").version') | |
| echo "version=$PLAYWRIGHT_VERSION" >> "$GITHUB_OUTPUT" | |
| - name: Build packages | |
| env: | |
| NODE_ENV: production | |
| run: yarn build:react:deps | |
| - name: Cache Playwright browsers | |
| uses: actions/cache@v4 | |
| id: playwright-cache | |
| with: | |
| path: ~/.cache/ms-playwright | |
| key: ${{ runner.os }}${{ runner.arch }}-playwright-browsers-${{ steps.playwright-version.outputs.version }} | |
| - 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 | |
| run: yarn workspace @stream-io/egress-composite test:e2e:prod | |
| - name: Upload test results | |
| uses: actions/upload-artifact@v4 | |
| if: always() | |
| with: | |
| name: test-results | |
| path: sample-apps/react/egress-composite/test-results/ | |
| retention-days: 5 |