build: use ModelUtils for getAdditionalProperties #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Samples Ruby | |
on: | |
push: | |
paths: | |
- 'samples/client/echo_api/ruby-httpx/**' | |
- 'samples/client/echo_api/ruby-faraday/**' | |
- 'samples/client/echo_api/ruby-typhoeus/**' | |
pull_request: | |
paths: | |
- 'samples/client/echo_api/ruby-httpx/**' | |
- 'samples/client/echo_api/ruby-faraday/**' | |
- 'samples/client/echo_api/ruby-typhoeus/**' | |
jobs: | |
build: | |
name: Build Ruby | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
sample: | |
- 'samples/client/echo_api/ruby-httpx/' | |
- 'samples/client/echo_api/ruby-faraday/' | |
- 'samples/client/echo_api/ruby-typhoeus/' | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup node.js | |
uses: actions/setup-node@v4 | |
- name: Run echo server | |
run: | | |
git clone https://github.com/wing328/http-echo-server -b openapi-generator-test-server | |
(cd http-echo-server && npm install && npm start &) | |
- uses: actions/setup-ruby@v1 | |
with: | |
ruby-version: 3.0 | |
bundler-cache: true | |
- name: Install bundle | |
working-directory: ${{ matrix.sample }} | |
run: bundle install | |
- name: Run rspec | |
working-directory: ${{ matrix.sample }} | |
run: rspec |