Skip to content

Commit 941a5cc

Browse files
authored
Add workflow to test TypeScript server (#22125)
* add workflow to test TS servers * fix path * trigger build failure * Revert "trigger build failure" This reverts commit a0bf019. * remove ts server tests in circleci
1 parent 5f13c53 commit 941a5cc

File tree

3 files changed

+36
-2
lines changed

3 files changed

+36
-2
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Samples TS servers
2+
3+
on:
4+
push:
5+
paths:
6+
- samples/server/petstore/typescript-nestjs-server/**
7+
pull_request:
8+
paths:
9+
- samples/server/petstore/typescript-nestjs-server/**
10+
jobs:
11+
build:
12+
name: Build projects
13+
runs-on: ubuntu-latest
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
node:
18+
- "18.x"
19+
- "20.x"
20+
sample:
21+
- samples/server/petstore/typescript-nestjs-server/
22+
steps:
23+
- uses: actions/checkout@v5
24+
- name: Use Node.js 20.x
25+
uses: actions/setup-node@v5
26+
with:
27+
node-version: ${{ matrix.node }}
28+
cache: 'npm' # Or 'yarn'
29+
- name: npm install
30+
working-directory: ${{ matrix.sample }}
31+
run: npm install
32+
- name: npm test
33+
working-directory: ${{ matrix.sample }}
34+
run: npm test

CI/circle_parallel.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,6 @@ elif [ "$NODE_INDEX" = "3" ]; then
107107
(cd samples/client/petstore/typescript-axios/builds/with-npm-version && mvn integration-test)
108108
(cd samples/client/petstore/typescript-axios/tests/default && mvn integration-test)
109109
(cd samples/client/petstore/typescript-axios/tests/with-complex-headers && mvn integration-test)
110-
(cd samples/server/petstore/typescript-nestjs-server && mvn integration-test)
111110

112111
else
113112
echo "Running node $NODE_INDEX ..."

samples/server/petstore/typescript-nestjs-server/pom.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,4 +132,5 @@
132132
</plugin>
133133
</plugins>
134134
</build>
135-
</project>
135+
</project>
136+

0 commit comments

Comments
 (0)