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 74ecfdc
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 4 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
name: coverage
on:
push:
branches:
- "master"
jobs:
coverage:
name: coverage
runs-on: ubuntu-20.04
env:
BUNDLE_GEMFILE: 'gemfiles/rbnacl.gemfile'
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
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
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
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 Down
2 changes: 1 addition & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
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 74ecfdc

Please sign in to comment.