diff --git a/.github/workflows/samples-typescript-server.yaml b/.github/workflows/samples-typescript-server.yaml new file mode 100644 index 000000000000..002819f77d75 --- /dev/null +++ b/.github/workflows/samples-typescript-server.yaml @@ -0,0 +1,34 @@ +name: Samples TS servers + +on: + push: + paths: + - samples/server/petstore/typescript-nestjs-server/** + pull_request: + paths: + - samples/server/petstore/typescript-nestjs-server/** +jobs: + build: + name: Build projects + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + node: + - "18.x" + - "20.x" + sample: + - samples/server/petstore/typescript-nestjs-server/ + steps: + - uses: actions/checkout@v5 + - name: Use Node.js 20.x + uses: actions/setup-node@v5 + with: + node-version: ${{ matrix.node }} + cache: 'npm' # Or 'yarn' + - name: npm install + working-directory: ${{ matrix.sample }} + run: npm install + - name: npm test + working-directory: ${{ matrix.sample }} + run: npm test diff --git a/CI/circle_parallel.sh b/CI/circle_parallel.sh index 842c43f3ee98..b7646e47587c 100755 --- a/CI/circle_parallel.sh +++ b/CI/circle_parallel.sh @@ -107,7 +107,6 @@ elif [ "$NODE_INDEX" = "3" ]; then (cd samples/client/petstore/typescript-axios/builds/with-npm-version && mvn integration-test) (cd samples/client/petstore/typescript-axios/tests/default && mvn integration-test) (cd samples/client/petstore/typescript-axios/tests/with-complex-headers && mvn integration-test) - (cd samples/server/petstore/typescript-nestjs-server && mvn integration-test) else echo "Running node $NODE_INDEX ..." diff --git a/samples/server/petstore/typescript-nestjs-server/pom.xml b/samples/server/petstore/typescript-nestjs-server/pom.xml index 5ceee69d41e9..2e022675e1b9 100644 --- a/samples/server/petstore/typescript-nestjs-server/pom.xml +++ b/samples/server/petstore/typescript-nestjs-server/pom.xml @@ -132,4 +132,5 @@ - \ No newline at end of file + +