Skip to content

Commit dceb03a

Browse files
committed
migrate ruby tests to github workflow
1 parent 24d7c3e commit dceb03a

File tree

2 files changed

+24
-24
lines changed

2 files changed

+24
-24
lines changed
Lines changed: 20 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
1-
name: Samples Ruby
1+
name: Samples Ruby
22

33
on:
44
push:
55
paths:
6-
- 'samples/client/echo_api/ruby-httpx/**'
7-
- 'samples/client/echo_api/ruby-faraday/**'
8-
- 'samples/client/echo_api/ruby-typhoeus/**'
6+
- samples/client/petstore/ruby/**
7+
- samples/client/petstore/ruby-faraday/**
8+
- samples/client/petstore/ruby-httpx/**
9+
- samples/client/petstore/ruby-autoload/**
910
pull_request:
1011
paths:
11-
- 'samples/client/echo_api/ruby-httpx/**'
12-
- 'samples/client/echo_api/ruby-faraday/**'
13-
- 'samples/client/echo_api/ruby-typhoeus/**'
12+
- samples/client/petstore/ruby/**
13+
- samples/client/petstore/ruby-faraday/**
14+
- samples/client/petstore/ruby-httpx/**
15+
- samples/client/petstore/ruby-autoload/**
1416

1517
jobs:
1618
build:
@@ -20,24 +22,18 @@ jobs:
2022
fail-fast: false
2123
matrix:
2224
sample:
23-
- 'samples/client/echo_api/ruby-httpx/'
24-
- 'samples/client/echo_api/ruby-faraday/'
25-
- 'samples/client/echo_api/ruby-typhoeus/'
25+
- samples/client/petstore/ruby/
26+
- samples/client/petstore/ruby-faraday/
27+
- samples/client/petstore/ruby-httpx/
28+
- samples/client/petstore/ruby-autoload/
2629
steps:
2730
- 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
31+
- uses: ruby/setup-ruby@v1
3532
with:
36-
ruby-version: 3.0
37-
bundler-cache: true
38-
- name: Install bundle
33+
ruby-version: '3.2' # Not needed with a .ruby-version, .tool-versions or mise.toml
34+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
35+
- name: Run test
3936
working-directory: ${{ matrix.sample }}
40-
run: bundle install
41-
- name: Run rspec
42-
working-directory: ${{ matrix.sample }}
43-
run: rspec
37+
run: bundle exec rake
38+
39+

samples/client/petstore/ruby/.openapi-generator-ignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,7 @@
2121
#docs/*.md
2222
# Then explicitly reverse the ignore rule for a single file:
2323
#!docs/README.md
24+
#
25+
#
26+
#
27+
#

0 commit comments

Comments
 (0)