Skip to content

Commit c2a8e11

Browse files
committed
add petstore, update host table
1 parent 2b3947e commit c2a8e11

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/samples-ruby.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,19 @@ jobs:
2626
- samples/client/petstore/ruby-faraday/
2727
- samples/client/petstore/ruby-httpx/
2828
- samples/client/petstore/ruby-autoload/
29+
services:
30+
petstore-api:
31+
image: swaggerapi/petstore
32+
ports:
33+
- 80:8080
34+
env:
35+
SWAGGER_HOST: http://petstore.swagger.io
36+
SWAGGER_BASE_PATH: /v2
2937
steps:
3038
- uses: actions/checkout@v5
39+
- name: Add hosts to /etc/hosts
40+
run: |
41+
sudo echo "127.0.0.1 petstore.swagger.io" | sudo tee -a /etc/hosts
3142
- uses: ruby/setup-ruby@v1
3243
with:
3344
ruby-version: '3.2' # Not needed with a .ruby-version, .tool-versions or mise.toml

0 commit comments

Comments
 (0)