diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..fd7c51b --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,21 @@ +name: CI + +on: [push, pull_request] + +jobs: + test: + runs-on: ubuntu-latest + strategy: + matrix: + ruby-version: ['2.7', '3.0', '3.1', ruby-head] + + steps: + - uses: actions/checkout@v2 + - name: Set up Ruby ${{ matrix.ruby-version }} + uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{ matrix.ruby-version }} + bundler-cache: true # 'bundle install' and cache + - name: Run specs + run: | + bundle exec rspec diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..735ef78 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,17 @@ +name: Lint + +on: [push, pull_request] + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Set up Ruby ${{ matrix.ruby-version }} + uses: ruby/setup-ruby@v1 + with: + ruby-version: 2.7 + bundler-cache: true # 'bundle install' and cache + - name: Run specs + run: | + bundle exec rubocop diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 7a03c5a..0000000 --- a/.travis.yml +++ /dev/null @@ -1,21 +0,0 @@ -language: ruby -cache: bundler -rvm: - - 2.6 - - 2.7 - - 3.0 - - ruby-head -before_install: - - gem update --system --no-doc - - gem install bundler -script: - - bundle exec rspec - - bundle exec rubocop - - bundle exec codeclimate-test-reporter -jobs: - allow_failures: - - rvm: ruby-head -addons: - code_climate: - repo_token: - secure: OWVschEUE+pVEQFR9dgtCUVmf2GJF3e7RTvX9M3CS7fhLyWqDlHdkCxmxCGJQDBVXR59ReCni2sbbRgkfqekkggLEG3gvHl2uof9+PVVRXTbDDDydwDGHLvcT8ZVJOHVgqgX899j6eBSsqdtSB7rMEdMOYBYDw35/yd844LkaW+sOWUbx0SJSo0V0QtJe3DC7vTAo/EEGTQs7WRGcXa6Pg9RlWiK7ThVoEbXQ4GDdjS5mWsQer4QcdnOfiuBL8mC3XAX+wJyBIqAVetAmhFKtwH+pKYMqRbcI/iBSaHslGowLr+tQW/tLO9XZsz95C6037XUse6BUJ5U9mYsgcnebslVJnuQ4dyXTXwQ2e1Fzy4iYr9Iz2Yhr3EjchXOvXh0D2BDPLCZMF98W/hsPZ4hPq/FhfjdfJXHcuqU6k7Ozr6UTwMmuNMvR7af2hXGaralTPOH8SVh/RtxpWsAocNA4n1b7dhdpMLKDNZ7GxdunDo5zJ03HUH4d0SDexnx3xSpfR/q+FJDHNxfD7KVAsgQYnrNjde/DnYszV2E3EAUVWF71ZaNQIvDyS1gyBjjvkSGRGL5tY7z+sdaRfE68toidgl2eR08vt/eYo3DIIzwPvI5N/BTv/Xm8vQ+jfwxCF6Ezr1TJTZW4auoMBAVqrr4HoO6T7VHTOeUD0Bukp7KBfQ= diff --git a/devise-jwt.gemspec b/devise-jwt.gemspec index 4b3ca5f..c07eece 100644 --- a/devise-jwt.gemspec +++ b/devise-jwt.gemspec @@ -27,7 +27,6 @@ Gem::Specification.new do |spec| spec.add_development_dependency "bundler", "> 1" spec.add_development_dependency "rake", "~> 13.0" spec.add_development_dependency "rspec" - spec.add_development_dependency "pry-byebug", "~> 3.7" # Needed to test the rails fixture application spec.add_development_dependency 'rails', '~> 6.0' spec.add_development_dependency 'sqlite3', '~> 1.3' diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 88b81d2..d3ee3d1 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -15,7 +15,6 @@ require 'rails/test_unit/railtie' require 'rspec/rails' -require 'pry-byebug' require 'simplecov' SimpleCov.start