Skip to content

Commit 1be58e9

Browse files
committed
test: add tests to github action
1 parent e35bf29 commit 1be58e9

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

.github/workflows/types-codegen-pr.yaml

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
branches:
66
- main
77
paths:
8-
- 'types/codegen/schema/chatTypes.json'
8+
- 'types/codegen/schema/**'
99
workflow_dispatch:
1010

1111
jobs:
@@ -31,9 +31,25 @@ jobs:
3131
working-directory: types/codegen
3232
run: npm install
3333

34+
- name: Unit tests
35+
working-directory: types/codegen
36+
run: npm run test:unit
37+
38+
- name: Coalesce schemas
39+
working-directory: types/codegen
40+
run: npm run generate-full-schema
41+
3442
- name: Generate types
3543
working-directory: types/codegen
36-
run: npm run generate
44+
run: npm run generate:only
45+
46+
- name: Post Process
47+
working-directory: types/codegen
48+
run: npm run post-process
49+
50+
- name: Completeness Test
51+
working-directory: types/codegen
52+
run: npm run test
3753

3854
- name: Build TypeScript
3955
working-directory: types/codegen/generated/typescript

0 commit comments

Comments
 (0)