1- name : Samples Ruby
1+ name : Samples Ruby
22
33on :
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
1517jobs :
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+
0 commit comments