Skip to content

Commit 0ec856d

Browse files
committed
run petstore
1 parent b4a70ee commit 0ec856d

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

.github/workflows/samples-typescript-client.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,14 @@ jobs:
6969
build:
7070
name: Build projects
7171
runs-on: ubuntu-latest
72+
services:
73+
petstore-api:
74+
image: swaggerapi/petstore
75+
ports:
76+
- 80:8080
77+
env:
78+
SWAGGER_HOST: http://petstore.swagger.io
79+
SWAGGER_BASE_PATH: /v2
7280
strategy:
7381
fail-fast: false
7482
matrix:
@@ -107,6 +115,9 @@ jobs:
107115
- samples/client/petstore/typescript-axios/tests/default/
108116
steps:
109117
- uses: actions/checkout@v5
118+
- name: Add hosts to /etc/hosts
119+
run: |
120+
sudo echo "127.0.0.1 petstore.swagger.io" | sudo tee -a /etc/hosts
110121
- name: Set up JDK 17
111122
uses: actions/setup-java@v4
112123
with:

0 commit comments

Comments
 (0)