-
Notifications
You must be signed in to change notification settings - Fork 463
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/master' into HEAD
- Loading branch information
Showing
100 changed files
with
5,069 additions
and
1,605 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,60 @@ | ||
# This workflow uses actions that are not certified by GitHub. | ||
# They are provided by a third-party and are governed by | ||
# separate terms of service, privacy policy, and support | ||
# documentation. | ||
# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake | ||
# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby | ||
|
||
name: build | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-20.04 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
ruby: | ||
- 2.6 | ||
- 2.7 | ||
- '3.0' | ||
- 3.1 | ||
gemfile: | ||
- Gemfile.rails50 | ||
- Gemfile.rails51 | ||
- Gemfile.rails52 # Min ruby 2.2.2 | ||
- Gemfile.rails60 # Min ruby 2.5.0 | ||
- Gemfile.rails61 # Min ruby 2.5.0 | ||
- Gemfile.rails70 # Min ruby 2.7.0 | ||
exclude: | ||
- gemfile: Gemfile.rails50 | ||
ruby: 2.7 | ||
- gemfile: Gemfile.rails50 | ||
ruby: '3.0' | ||
- gemfile: Gemfile.rails50 | ||
ruby: 3.1 | ||
- gemfile: Gemfile.rails51 | ||
ruby: 2.7 | ||
- gemfile: Gemfile.rails51 | ||
ruby: '3.0' | ||
- gemfile: Gemfile.rails51 | ||
ruby: 3.1 | ||
- gemfile: Gemfile.rails52 | ||
ruby: 2.7 | ||
- gemfile: Gemfile.rails52 | ||
ruby: '3.0' | ||
- gemfile: Gemfile.rails52 | ||
ruby: 3.1 | ||
- gemfile: Gemfile.rails70 | ||
ruby: 2.6 | ||
|
||
env: | ||
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: ${{ matrix.ruby }} | ||
bundler-cache: true | ||
- run: 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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: "RuboCop Challenge" | ||
|
||
on: | ||
schedule: | ||
- cron: '30 23 * * 1,3,5' # Monday, Wednesday, Friday at 23:30 UTC | ||
|
||
jobs: | ||
create-pr: | ||
name: Create Pull Request | ||
runs-on: ubuntu-latest | ||
env: | ||
BUNDLE_GEMFILE: gemfiles/Gemfile.rails50 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Ruby 2.7 | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: 2.7.6 | ||
- name: Install bundler | ||
run: gem install bundler | ||
- name: Install gems | ||
run: bundle install --jobs 4 --retry 3 | ||
- name: Set git configuration | ||
run: git config remote.origin.url "[email protected]:Apipie/apipie-rails.git" | ||
- name: Create RuboCop challenge pull request | ||
env: | ||
GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: bundle exec rubocop_challenger go --base-branch=master [email protected] --name="Rubocop Challenger" --mode=random |
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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
require: | ||
- rubocop-rails | ||
- rubocop-rspec | ||
- rubocop-performance | ||
|
||
inherit_from: .rubocop_todo.yml | ||
|
||
Rails: | ||
Enabled: true | ||
|
||
AllCops: | ||
NewCops: enable | ||
|
||
Layout/LineLength: | ||
Max: 140 | ||
Exclude: | ||
- app/controllers/apipie/apipies_controller.rb | ||
- lib/apipie/extractor/writer.rb | ||
- lib/apipie/param_description.rb | ||
- lib/apipie/response_description_adapter.rb | ||
- lib/apipie/swagger_generator.rb | ||
- lib/apipie/errors.rb | ||
- lib/apipie/rspec/response_validation_helper.rb | ||
- spec/controllers/users_controller_spec.rb | ||
- spec/dummy/app/controllers/twitter_example_controller.rb | ||
- spec/dummy/config/initializers/secret_token.rb | ||
- spec/lib/application_spec.rb | ||
- spec/lib/param_description_spec.rb | ||
- spec/lib/swagger/response_validation_spec.rb | ||
- spec/spec_helper.rb | ||
|
||
Naming/PredicateName: | ||
AllowedMethods: | ||
- have_field? | ||
|
||
Style/NumericPredicate: | ||
Enabled: false |
Oops, something went wrong.