forked from rswag/rswag
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from instacart/stephen_merge_upstream
- Loading branch information
Showing
33 changed files
with
981 additions
and
156 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
name: Ruby | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
ruby: [2.6, 2.7, truffleruby-head] | ||
rails: [5.2.4.4, 6.0.3.4] | ||
env: | ||
RAILS_VERSION: ${{ matrix.rails }} | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: ${{ matrix.ruby }} | ||
bundler-cache: true # runs 'bundle install' and caches installed gems automatically | ||
|
||
- uses: actions/cache@v2 | ||
id: cache | ||
with: | ||
path: | | ||
rswag-ui/node_modules | ||
vendor/bundle | ||
key: ${{ runner.os }}-ruby_${{ matrix.ruby }}-rails_${{ matrix.rails }}-${{ hashFiles('Gemfile', '**/package-lock.json') }} | ||
|
||
- name: Install dependencies | ||
run: | | ||
bundle install | ||
cd rswag-ui && npm install | ||
- name: rswag-api | ||
run: | | ||
cd rswag-api | ||
bundle exec rspec | ||
- name: rswag-specs | ||
if: success() || failure() | ||
run: | | ||
cd rswag-specs | ||
bundle exec rspec | ||
- name: rswag-ui | ||
if: success() || failure() | ||
run: | | ||
cd rswag-ui | ||
bundle exec rspec | ||
- name: test-app | ||
if: success() || failure() | ||
run: | | ||
cd test-app | ||
bundle exec rake db:migrate db:test:prepare | ||
bundle exec rspec |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
2.6.3 | ||
2.7.2 |
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,11 +9,11 @@ Gem::Specification.new do |s| | |
s.authors = ['Richie Morris', 'Greg Myers', 'Jay Danielian'] | ||
s.email = ['[email protected]'] | ||
s.homepage = 'https://github.com/rswag/rswag' | ||
s.summary = 'A Rails Engine that exposes Swagger files as JSON endpoints' | ||
s.description = 'Open up your API to the phenomenal Swagger ecosystem by exposing Swagger files, that describe your service, as JSON endpoints' | ||
s.summary = 'A Rails Engine that exposes OpenAPI (formerly called Swagger) files as JSON endpoints' | ||
s.description = 'Open up your API to the phenomenal OpenAPI ecosystem by exposing OpenAPI files, that describe your service, as JSON endpoints. More about the OpenAPI initiative here: http://spec.openapis.org/' | ||
s.license = 'MIT' | ||
|
||
s.files = Dir['{lib}/**/*'] + ['MIT-LICENSE', 'Rakefile'] | ||
|
||
s.add_dependency 'railties', '>= 3.1', '< 7.0' | ||
s.add_dependency 'railties', '>= 3.1', '< 7.1' | ||
end |
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
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
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
Oops, something went wrong.