-
Notifications
You must be signed in to change notification settings - Fork 28
35 lines (33 loc) · 1.06 KB
/
cypress.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
name: Cypress Tests for chrome
on:
workflow_dispatch:
push:
jobs:
cypress-run:
runs-on: ubuntu-latest
if: github.event.pull_request.draft != true
steps:
- uses: actions/checkout@v4
- uses: dorny/paths-filter@v3
id: filter
with:
filters: |
sdk:
- 'packages/hms-video-web/**/*.(ts|js)'
store:
- 'packages/hms-video-store/**/*.(ts|js)'
cypress:
- 'cypress/**/*.(ts|js)'
- name: Cypress
uses: cypress-io/github-action@v2
if: steps.filter.outputs.sdk == 'true' || steps.filter.outputs.store == 'true' || steps.filter.outputs.cypress == 'true'
with:
browser: chrome
build: yarn build --no-private
headless: false
env:
CYPRESS_TOKEN_ENDPOINT: ${{ secrets.TOKEN_ENDPOINT }}
CYPRESS_ROOM_ID: ${{ secrets.ROOM_ID }}
CYPRESS_ROLE: ${{ secrets.ROLE }}
CYPRESS_API_ENV: ${{ secrets.API_ENV }}
CYPRESS_INIT_ENDPOINT: ${{ secrets.INIT_ENDPOINT }}