-
Notifications
You must be signed in to change notification settings - Fork 23
77 lines (66 loc) · 2.25 KB
/
egress-composite-e2e.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
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: 20
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: Authenticate stream-video-buddy
# uses: nick-fields/[email protected]
# with:
# timeout_minutes: 5
# max_attempts: 2
# command: yarn workspace @stream-io/egress-composite buddy auth
- name: Run Playwright tests
run: yarn workspace @stream-io/egress-composite test:e2e
- name: Upload test results
uses: actions/upload-artifact@v3
if: always()
with:
name: test-results
path: sample-apps/react/egress-composite/test-results/
retention-days: 5