openapi #3
Workflow file for this run
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: CI | |
on: | |
workflow_dispatch: {} | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 3.1 | |
- name: Lint | |
run: bundle install | |
- name: Build | |
run: gem build conekta.gemspec | |
test: | |
name: Test (${{ matrix.ruby-version }}) | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
ruby-version: [2.6, 2.7, '3.0', 3.1, 3.2] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{ matrix.ruby-version }} | |
- name: Run Mockoon CLI | |
uses: mockoon/cli-action@v1 | |
with: | |
# Mockoon CLI version, default to 'latest' | |
version: 'latest' | |
# Mockoon local data file or URL | |
data-file: 'https://raw.githubusercontent.com/conekta/openapi/main/mocks/conekta_api.json' | |
# port, default to 3000 | |
port: 3000 | |
- name: test | |
run: make ci-test | |
env: | |
BASE_PATH: http://localhost:3000 | |