Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Official Support for rails 7.1 and ruby 3.x ++ Setup GitHub actions #4

Merged
merged 18 commits into from
Oct 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 55 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# 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: ci

on:
- push
- pull_request

jobs:
test:
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
gemfile: ['rails_7.1', 'rails_7.0']
ruby: [3.3, 3.2, 3.1]
include:
- gemfile: rails_7.1
ruby: '3.0'
- gemfile: rails_7.1
ruby: 2.7
- gemfile: rails_7.0
ruby: '3.0'
- gemfile: rails_7.0
ruby: 2.7
- gemfile: rails_6.1
ruby: 2.7
- gemfile: rails_6.0
ruby: 2.7
- gemfile: rails_5.2
ruby: 2.7
- gemfile: rails_5.1
ruby: 2.7
- gemfile: rails_5.0
ruby: 2.7

env:
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile
CI: true
COVERALLS_REPO_TOKEN: 3PVU3qEEgaWdwemUGBjnbYwv87BPTti9u
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: RSpec and Rubocop
run: |
bundle exec rubocop -c .rubocop.yml
bundle exec rspec
261 changes: 0 additions & 261 deletions .rubocop.hound.yml

This file was deleted.

27 changes: 8 additions & 19 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,16 @@
inherit_from:
- .rubocop.hound.yml
inherit_from: .rubocop_todo.yml

AllCops:
TargetRubyVersion: 2.1
Exclude:
- '*.gemspec'
- 'Gemfile'
NewCops: enable
TargetRubyVersion: 2.7

Style/EmptyLinesAroundClassBody:
Layout/EmptyLinesAroundClassBody:
Enabled: false

Style/EmptyLinesAroundModuleBody:
Layout/EmptyLinesAroundModuleBody:
Enabled: false

Style/EmptyLinesAroundMethodBody:
Layout/EmptyLinesAroundMethodBody:
Enabled: false

Style/ClassCheck:
Expand All @@ -23,7 +20,7 @@ Style/ClassCheck:
Style/StringLiterals:
Enabled: false

Style/FileName:
Naming/FileName:
Enabled: false

Style/RedundantException:
Expand All @@ -35,19 +32,11 @@ Style/SignalException:
Style/BlockDelimiters:
Enabled: false

Style/CollectionMethods:
PreferredMethods:
detect: find

# Github's PR width is 120 characters
Metrics/LineLength:
Layout/LineLength:
Max: 120
AllowURI: true

# Align with the style guide, we don't prefer anything
Style/CollectionMethods:
Enabled: false

Metrics/AbcSize:
Description: A calculated magnitude based on number of assignments, branches, and
conditions.
Expand Down
Loading
Loading