Skip to content

Commit 33fdad9

Browse files
committed
add echo client tests
1 parent dceb03a commit 33fdad9

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Samples Ruby
2+
3+
on:
4+
push:
5+
paths:
6+
- 'samples/client/echo_api/ruby-httpx/**'
7+
- 'samples/client/echo_api/ruby-faraday/**'
8+
- 'samples/client/echo_api/ruby-typhoeus/**'
9+
pull_request:
10+
paths:
11+
- 'samples/client/echo_api/ruby-httpx/**'
12+
- 'samples/client/echo_api/ruby-faraday/**'
13+
- 'samples/client/echo_api/ruby-typhoeus/**'
14+
15+
jobs:
16+
build:
17+
name: Build Ruby
18+
runs-on: ubuntu-latest
19+
strategy:
20+
fail-fast: false
21+
matrix:
22+
sample:
23+
- 'samples/client/echo_api/ruby-httpx/'
24+
- 'samples/client/echo_api/ruby-faraday/'
25+
- 'samples/client/echo_api/ruby-typhoeus/'
26+
steps:
27+
- uses: actions/checkout@v5
28+
- name: Setup node.js
29+
uses: actions/setup-node@v5
30+
- name: Run echo server
31+
run: |
32+
git clone https://github.com/wing328/http-echo-server -b openapi-generator-test-server
33+
(cd http-echo-server && npm install && npm start &)
34+
- uses: actions/setup-ruby@v1
35+
with:
36+
ruby-version: 3.2
37+
bundler-cache: true
38+
- name: Install bundle
39+
working-directory: ${{ matrix.sample }}
40+
run: bundle install
41+
- name: Run rspec
42+
working-directory: ${{ matrix.sample }}
43+
run: rspec

0 commit comments

Comments
 (0)