forked from loafle/openapi-generator-original
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 4 to 5. - [Release notes](https://github.com/actions/setup-node/releases) - [Commits](https://github.com/actions/setup-node/compare/v4...v5) --- updated-dependencies: - dependency-name: actions/setup-node dependency-version: '5' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
44 lines
1.2 KiB
YAML
44 lines
1.2 KiB
YAML
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@v5
|
|
- name: Setup node.js
|
|
uses: actions/setup-node@v5
|
|
- 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
|