Skip to content

Commit 8f81b02

Browse files
committed
add service, update host table
1 parent 38fe3da commit 8f81b02

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,19 @@ jobs:
3838
- samples/client/petstore/scala-sttp
3939
- samples/client/petstore/scala-sttp-circe
4040
- samples/client/petstore/scala-sttp4
41+
services:
42+
petstore-api:
43+
image: swaggerapi/petstore
44+
ports:
45+
- 80:8080
46+
env:
47+
SWAGGER_HOST: http://petstore.swagger.io
48+
SWAGGER_BASE_PATH: /v2
4149
steps:
4250
- uses: actions/checkout@v5
51+
- name: Add hosts to /etc/hosts
52+
run: |
53+
sudo echo "127.0.0.1 petstore.swagger.io" | sudo tee -a /etc/hosts
4354
- uses: actions/setup-java@v5
4455
with:
4556
distribution: 'temurin'

0 commit comments

Comments
 (0)