-
Notifications
You must be signed in to change notification settings - Fork 1
55 lines (47 loc) · 1.55 KB
/
sdk-typecheck.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
name: SDK Typecheck
on:
pull_request:
paths:
- 'openapi/video-openapi-clientside.yaml'
concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true
jobs:
sdk-typecheck:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
path: protocol
- name: Compile definitions
run: |
docker run --rm \
-v $(pwd)/protocol:/local openapitools/openapi-generator-cli generate \
-i /local/openapi/video-openapi-clientside.yaml \
-g typescript-fetch \
-o /local/ts-sdk \
--additional-properties=supportsES6=true \
--additional-properties=modelPropertyNaming=original \
--additional-properties=enumPropertyNaming=UPPERCASE \
--additional-properties=withoutRuntimeChecks=true
- name: Checkout SDK
uses: actions/checkout@v4
with:
repository: 'GetStream/stream-video-js'
path: stream-video-js
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20.x
cache: 'yarn'
cache-dependency-path: stream-video-js/yarn.lock
- name: Install SDK dependencies
working-directory: stream-video-js
run: |
yarn install --immutable
rm -r packages/client/src/gen/coordinator
cp protocol/ts-sdk packages/client/src/gen/coordinator
- name: Typecheck
working-directory: stream-video-js
run: yarn run build:client