Skip to content

Commit 8feff94

Browse files
authored
(chore) update build (#19)
Fix coverage, update Ruby.
1 parent 6d350ff commit 8feff94

File tree

5 files changed

+16
-15
lines changed

5 files changed

+16
-15
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: Build
22

33
on:
44
push:
5-
branches: [ master ]
5+
branches: [master]
66
pull_request:
7-
branches: [ master ]
7+
branches: [master]
88

99
jobs:
1010
test:
@@ -14,13 +14,13 @@ jobs:
1414
- name: Set up Ruby
1515
uses: ruby/setup-ruby@v1
1616
with:
17-
ruby-version: 2.6.5
17+
ruby-version: 3.1.0
1818
- name: Install dependencies
1919
run: bundle install
2020
- name: Run tests
2121
run: bundle exec rspec
2222
- name: Report coverage
23-
uses: paambaati/codeclimate-action@v2.6.0
23+
uses: paambaati/codeclimate-action@v9.0.0
2424
env:
2525
CC_TEST_REPORTER_ID: ${{secrets.CC_TEST_REPORTER_ID}}
2626
with:

.rubocop.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
require: rubocop-rspec
22

3+
AllCops:
4+
TargetRubyVersion: 3.1
5+
36
Layout/LineLength:
47
Max: 120
58

69
Metrics/BlockLength:
7-
ExcludedMethods: ['describe', 'context']
10+
ExcludedMethods: ["describe", "context"]
811

912
Layout/MultilineMethodCallIndentation:
1013
EnforcedStyle: indented_relative_to_receiver

.travis.yml

Lines changed: 0 additions & 7 deletions
This file was deleted.

graphql-groups.gemspec

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Gem::Specification.new do |spec|
1212

1313
spec.summary = 'Create flexible and fast aggregation queries with graphql-ruby'
1414
spec.description = <<~HEREDOC
15-
GraphQL Groups makes it easy to add aggregation queries to your GraphQL schema. It combines a simple, flexible
15+
GraphQL Groups makes it easy to add aggregation queries to your GraphQL schema. It combines a simple, flexible#{' '}
1616
schema definition with high performance
1717
HEREDOC
1818
spec.homepage = 'https://github.com/hschne/graphql-groups'
@@ -31,7 +31,7 @@ Gem::Specification.new do |spec|
3131
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
3232
spec.require_paths = ['lib']
3333

34-
spec.required_ruby_version = Gem::Requirement.new('>= 2.6.0')
34+
spec.required_ruby_version = Gem::Requirement.new('>= 3.1.0')
3535

3636
spec.add_development_dependency 'activerecord', '~> 6.0'
3737
spec.add_development_dependency 'benchmark-ips', '~> 2.8'
@@ -44,7 +44,7 @@ Gem::Specification.new do |spec|
4444
spec.add_development_dependency 'rspec', '~> 3.0'
4545
spec.add_development_dependency 'rubocop', '~> 0.88'
4646
spec.add_development_dependency 'rubocop-rspec', '~> 1.42'
47-
spec.add_development_dependency 'simplecov', '~> 0.21.2'
47+
spec.add_development_dependency 'simplecov', '~> 0.22'
4848
spec.add_development_dependency 'sqlite3', '~> 1.4.2'
4949

5050
spec.add_dependency 'graphql', '> 1.9'

spec/spec_helper.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,8 @@
3636
DatabaseCleaner.clean
3737
end
3838
end
39+
40+
if ENV['CI']
41+
require 'simplecov_json_formatter'
42+
SimpleCov.formatter = SimpleCov::Formatter::JSONFormatter
43+
end

0 commit comments

Comments
 (0)