-
-
Notifications
You must be signed in to change notification settings - Fork 300
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 #335 from ivy/ivy/github-actions-ci
Test against current and next Ruby and Rails versions
- Loading branch information
Showing
51 changed files
with
256 additions
and
136 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,57 @@ | ||
on: | ||
push: | ||
branches: [master] | ||
|
||
pull_request: | ||
|
||
jobs: | ||
ci: | ||
runs-on: ubuntu-latest | ||
continue-on-error: ${{ endsWith(matrix.ruby, 'head') || matrix.gemfile == 'gemfiles/rails_edge.gemfile' }} | ||
|
||
strategy: | ||
matrix: | ||
ruby: | ||
# MRI | ||
- head | ||
- "3.1.0-preview1" | ||
- "3.0" | ||
- "2.7" | ||
|
||
# JRuby | ||
- jruby-head | ||
- jruby-9.3 | ||
- jruby-9.2 | ||
|
||
# TruffleRuby | ||
- truffleruby-head | ||
- truffleruby-21.3 | ||
|
||
gemfile: | ||
- Gemfile | ||
- gemfiles/rails_edge.gemfile | ||
- gemfiles/rails_6.0.gemfile | ||
- gemfiles/rails_5.2.gemfile | ||
|
||
# Include additional ruby/gemfile combinations: | ||
include: | ||
# NOTE(ivy): Rails 7 requires Ruby version >= 2.7 | ||
- ruby: "2.6" | ||
gemfile: Gemfile | ||
- ruby: "2.6" | ||
gemfile: gemfiles/rails_6.0.gemfile | ||
- ruby: "2.6" | ||
gemfile: gemfiles/rails_5.2.gemfile | ||
|
||
env: | ||
BUNDLE_GEMFILE: ${{ github.workspace }}/${{ matrix.gemfile }} | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: ${{ matrix.ruby }} | ||
bundler-cache: true | ||
|
||
- run: bundle exec rake |
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,5 +1,6 @@ | ||
*.gem | ||
.bundle | ||
Gemfile.lock | ||
coverage | ||
gemfiles/*.lock | ||
pkg/* |
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,15 +1,25 @@ | ||
LineLength: | ||
AllCops: | ||
Exclude: | ||
- Guardfile | ||
- vendor/**/* | ||
NewCops: enable | ||
|
||
Layout/LineLength: | ||
Max: 120 | ||
|
||
Documentation: | ||
Lint/AmbiguousBlockAssociation: | ||
Exclude: | ||
- spec/**/*_spec.rb | ||
|
||
Metrics/AbcSize: | ||
Enabled: false | ||
|
||
AllCops: | ||
Metrics/BlockLength: | ||
Exclude: | ||
- 'Guardfile' | ||
- spec/**/*_spec.rb | ||
|
||
Metrics/AbcSize: | ||
Style/BlockDelimiters: | ||
Enabled: false | ||
|
||
Style/EmptyMethod: | ||
Style/Documentation: | ||
Enabled: false |
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,17 +1,19 @@ | ||
# frozen_string_literal: true | ||
|
||
source 'https://rubygems.org' | ||
|
||
# Specify your gem's dependencies in lograge.gemspec | ||
gemspec path: '..' | ||
|
||
group :test do | ||
gem 'activerecord', '~> 5.1.0' | ||
gem 'actionpack', '~> 5.1.0' | ||
|
||
gem 'actionpack', github: 'rails/rails' | ||
gem 'activerecord', github: 'rails/rails' | ||
# logstash does not release any gems on rubygems, but they have two gemspecs within their repo. | ||
# Using the tag is an attempt of having a stable version to test against where we can ensure that | ||
# we test against the correct code. | ||
gem 'logstash-event', git: 'https://github.com/elastic/logstash', tag: 'v1.5.4' | ||
# logstash 1.5.4 is only supported with jrjackson up to 0.2.9 | ||
gem 'jrjackson', '~> 0.2.9', platforms: :jruby | ||
gem 'lines' | ||
gem 'thread_safe' | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
# frozen_string_literal: true | ||
|
||
module Lograge | ||
module Formatters | ||
class Cee | ||
|
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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
# frozen_string_literal: true | ||
|
||
module Lograge | ||
module Formatters | ||
module Helpers | ||
|
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,3 +1,5 @@ | ||
# frozen_string_literal: true | ||
|
||
require 'json' | ||
module Lograge | ||
module Formatters | ||
|
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,3 +1,5 @@ | ||
# frozen_string_literal: true | ||
|
||
module Lograge | ||
module Formatters | ||
class KeyValue | ||
|
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.