Skip to content

Commit

Permalink
Migrate CI to GitHub Actions (#239)
Browse files Browse the repository at this point in the history
* Migrate CI to GitHub Actions

Moves CI to GitHub Actions.  Separates out linting from specs.

* Remove pry-byebug dependency for forward compatibility

* Remove .travis.yml and Ruby 2.6 (EOLed)
  • Loading branch information
petergoldstein authored Mar 8, 2022
1 parent 6520aff commit e1102ee
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 23 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -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
17 changes: 17 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -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
21 changes: 0 additions & 21 deletions .travis.yml

This file was deleted.

1 change: 0 additions & 1 deletion devise-jwt.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
1 change: 0 additions & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
require 'rails/test_unit/railtie'

require 'rspec/rails'
require 'pry-byebug'
require 'simplecov'
SimpleCov.start

Expand Down

0 comments on commit e1102ee

Please sign in to comment.