Skip to content

Commit 4aae766

Browse files
committed
add workflow to test ts clients
1 parent 941a5cc commit 4aae766

2 files changed

Lines changed: 122 additions & 0 deletions

File tree

Lines changed: 121 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,121 @@
1+
name: Samples TS clients
2+
3+
on:
4+
push:
5+
paths:
6+
- samples/client/others/typescript-angular/**
7+
- samples/client/petstore/typescript-angular-v12-provided-in-root/**
8+
- samples/client/petstore/typescript-angular-v13-provided-in-root/**
9+
- samples/client/petstore/typescript-angular-v14-provided-in-root/**
10+
- samples/client/petstore/typescript-angular-v15-provided-in-root/**
11+
- samples/client/petstore/typescript-angular-v16-provided-in-root/**
12+
- samples/client/petstore/typescript-angular-v17-provided-in-root/**
13+
- samples/client/petstore/typescript-angular-v18-provided-in-root/**
14+
- samples/client/petstore/typescript-angular-v19-provided-in-root/**
15+
- samples/openapi3/client/petstore/typescript/builds/default/**
16+
- samples/openapi3/client/petstore/typescript/tests/default/**
17+
- samples/openapi3/client/petstore/typescript/builds/jquery/**
18+
- samples/openapi3/client/petstore/typescript/tests/jquery/**
19+
- samples/openapi3/client/petstore/typescript/builds/object_params/**
20+
- samples/openapi3/client/petstore/typescript/tests/object_params/**
21+
- samples/openapi3/client/petstore/typescript/builds/inversify/**
22+
- samples/openapi3/client/petstore/typescript/tests/inversify/**
23+
#- samples/openapi3/client/petstore/typescript/tests/deno/**
24+
- samples/openapi3/client/petstore/typescript/builds/browser/**
25+
- samples/openapi3/client/petstore/typescript/tests/browser/**
26+
- samples/openapi3/client/petstore/typescript/builds/nullable-enum/**
27+
- samples/client/petstore/typescript-fetch/builds/default/**
28+
- samples/client/petstore/typescript-fetch/builds/es6-target/**
29+
- samples/client/petstore/typescript-fetch/builds/with-npm-version/**
30+
- samples/client/petstore/typescript-fetch/tests/default/**
31+
- samples/client/petstore/typescript-node/npm/**
32+
- samples/client/petstore/typescript-rxjs/builds/with-npm-version/**
33+
- samples/client/petstore/typescript-axios/builds/with-npm-version/**
34+
- samples/client/petstore/typescript-axios/tests/default/**
35+
pull_request:
36+
paths:
37+
- samples/client/others/typescript-angular/**
38+
- samples/client/petstore/typescript-angular-v12-provided-in-root/**
39+
- samples/client/petstore/typescript-angular-v13-provided-in-root/**
40+
- samples/client/petstore/typescript-angular-v14-provided-in-root/**
41+
- samples/client/petstore/typescript-angular-v15-provided-in-root/**
42+
- samples/client/petstore/typescript-angular-v16-provided-in-root/**
43+
- samples/client/petstore/typescript-angular-v17-provided-in-root/**
44+
- samples/client/petstore/typescript-angular-v18-provided-in-root/**
45+
- samples/client/petstore/typescript-angular-v19-provided-in-root/**
46+
- samples/openapi3/client/petstore/typescript/builds/default/**
47+
- samples/openapi3/client/petstore/typescript/tests/default/**
48+
- samples/openapi3/client/petstore/typescript/builds/jquery/**
49+
- samples/openapi3/client/petstore/typescript/tests/jquery/**
50+
- samples/openapi3/client/petstore/typescript/builds/object_params/**
51+
- samples/openapi3/client/petstore/typescript/tests/object_params/**
52+
- samples/openapi3/client/petstore/typescript/builds/inversify/**
53+
- samples/openapi3/client/petstore/typescript/tests/inversify/**
54+
#- samples/openapi3/client/petstore/typescript/tests/deno/**
55+
- samples/openapi3/client/petstore/typescript/builds/browser/**
56+
- samples/openapi3/client/petstore/typescript/tests/browser/**
57+
- samples/openapi3/client/petstore/typescript/builds/nullable-enum/**
58+
- samples/client/petstore/typescript-fetch/builds/default/**
59+
- samples/client/petstore/typescript-fetch/builds/es6-target/**
60+
- samples/client/petstore/typescript-fetch/builds/with-npm-version/**
61+
- samples/client/petstore/typescript-fetch/tests/default/**
62+
- samples/client/petstore/typescript-node/npm/**
63+
- samples/client/petstore/typescript-rxjs/builds/with-npm-version/**
64+
- samples/client/petstore/typescript-axios/builds/with-npm-version/**
65+
- samples/client/petstore/typescript-axios/tests/default/**
66+
jobs:
67+
build:
68+
name: Build projects
69+
runs-on: ubuntu-latest
70+
strategy:
71+
fail-fast: false
72+
matrix:
73+
node:
74+
- "18.x"
75+
- "20.x"
76+
sample:
77+
- samples/client/others/typescript-angular/
78+
- samples/client/petstore/typescript-angular-v12-provided-in-root/
79+
- samples/client/petstore/typescript-angular-v13-provided-in-root/
80+
- samples/client/petstore/typescript-angular-v14-provided-in-root/
81+
- samples/client/petstore/typescript-angular-v15-provided-in-root/
82+
- samples/client/petstore/typescript-angular-v16-provided-in-root/
83+
- samples/client/petstore/typescript-angular-v17-provided-in-root/
84+
- samples/client/petstore/typescript-angular-v18-provided-in-root/
85+
- samples/client/petstore/typescript-angular-v19-provided-in-root/
86+
- samples/openapi3/client/petstore/typescript/builds/default/
87+
- samples/openapi3/client/petstore/typescript/tests/default/
88+
- samples/openapi3/client/petstore/typescript/builds/jquery/
89+
- samples/openapi3/client/petstore/typescript/tests/jquery/
90+
- samples/openapi3/client/petstore/typescript/builds/object_params/
91+
- samples/openapi3/client/petstore/typescript/tests/object_params/
92+
- samples/openapi3/client/petstore/typescript/builds/inversify/
93+
- samples/openapi3/client/petstore/typescript/tests/inversify/
94+
#- samples/openapi3/client/petstore/typescript/tests/deno/
95+
- samples/openapi3/client/petstore/typescript/builds/browser/
96+
- samples/openapi3/client/petstore/typescript/tests/browser/
97+
- samples/openapi3/client/petstore/typescript/builds/nullable-enum/
98+
- samples/client/petstore/typescript-fetch/builds/default/
99+
- samples/client/petstore/typescript-fetch/builds/es6-target/
100+
- samples/client/petstore/typescript-fetch/builds/with-npm-version/
101+
- samples/client/petstore/typescript-fetch/tests/default/
102+
- samples/client/petstore/typescript-node/npm/
103+
- samples/client/petstore/typescript-rxjs/builds/with-npm-version/
104+
- samples/client/petstore/typescript-axios/builds/with-npm-version/
105+
- samples/client/petstore/typescript-axios/tests/default/
106+
steps:
107+
- uses: actions/checkout@v5
108+
- name: Use Node.js 20.x
109+
uses: actions/setup-node@v5
110+
with:
111+
node-version: ${{ matrix.node }}
112+
cache: 'npm' # Or 'yarn'
113+
- name: npm install
114+
working-directory: ${{ matrix.sample }}
115+
run: npm install
116+
- name: npm run build
117+
working-directory: ${{ matrix.sample }}
118+
run: npm run build
119+
- name: npm test
120+
working-directory: ${{ matrix.sample }}
121+
run: npm test

samples/client/petstore/typescript-axios/tests/default/pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,4 @@
5757
</plugins>
5858
</build>
5959
</project>
60+

0 commit comments

Comments
 (0)