Skip to content

Commit

Permalink
Bring back Ruby 2.5 support and CodeClimate coverage reports
Browse files Browse the repository at this point in the history
  • Loading branch information
anakinj committed Jan 4, 2022
1 parent 710b9e9 commit ffc66e3
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 4 deletions.
25 changes: 23 additions & 2 deletions .github/workflows/test.yml
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: "2.6"
ruby-version: "2.7"
bundler-cache: true
- name: Run RuboCop
run: bundle exec rubocop
Expand All @@ -26,6 +26,7 @@ jobs:
fail-fast: false
matrix:
ruby:
- 2.5
- 2.6
- 2.7
- "3.0"
Expand All @@ -37,7 +38,6 @@ jobs:
experimental: [false]
include:
- ruby: 2.7
coverage: "true"
gemfile: 'gemfiles/rbnacl.gemfile'
- ruby: "ruby-head"
experimental: true
Expand All @@ -64,3 +64,24 @@ jobs:

- name: Run tests
run: bundle exec rspec
coverage:
needs: [ test ]
name: coverage
runs-on: ubuntu-20.04
env:
BUNDLE_GEMFILE: 'gemfiles/rbnacl.gemfile'
CC_TEST_REPORTER_ID: e87b175db123ab42ca2ca4420abaa13c0dc2085608402b9a25f08a83ca3ba202
steps:
- uses: actions/checkout@v2
- name: Install libsodium
run: |
sudo apt-get update -q
sudo apt-get install libsodium-dev -y
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: "2.7"
bundler-cache: true
- uses: paambaati/codeclimate-action@v3.0.0
with:
coverageCommand: bundle exec rspec
2 changes: 1 addition & 1 deletion .rubocop.yml
@@ -1,7 +1,7 @@
inherit_from: .rubocop_todo.yml

AllCops:
TargetRubyVersion: 2.6
TargetRubyVersion: 2.5
NewCops: enable
SuggestExtensions: false
Exclude:
Expand Down
2 changes: 1 addition & 1 deletion ruby-jwt.gemspec
Expand Up @@ -13,7 +13,7 @@ Gem::Specification.new do |spec|
spec.description = 'A pure ruby implementation of the RFC 7519 OAuth JSON Web Token (JWT) standard.'
spec.homepage = 'https://github.com/jwt/ruby-jwt'
spec.license = 'MIT'
spec.required_ruby_version = '>= 2.6'
spec.required_ruby_version = '>= 2.5'
spec.metadata = {
'bug_tracker_uri' => 'https://github.com/jwt/ruby-jwt/issues',
'changelog_uri' => "https://github.com/jwt/ruby-jwt/blob/v#{JWT.gem_version}/CHANGELOG.md"
Expand Down

0 comments on commit ffc66e3

Please sign in to comment.