Skip to content

Commit

Permalink
improve: Added Github Action CI (#78)
Browse files Browse the repository at this point in the history
We previously used TravisCI to run specs. This PR replaces this with a Github Action. It also removes the version locks on development dependencies as they are very old.
  • Loading branch information
jylamont authored Apr 18, 2024
1 parent 274639e commit 1f26a6e
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 11 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: CI

on:
push:
branches:
- master
pull_request:

jobs:
lint:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Install Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.6.8
bundler-cache: true

- name: RuboCop
run: bundle exec rubocop

test:
runs-on: ubuntu-latest

strategy:
matrix:
ruby-version: ["2.6.8", "2.7.8", "3.0.6", "3.1.4", "3.2.3", "3.3.0"]

steps:
- uses: actions/checkout@v2

- name: Install Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true

- name: RSpec
run: bundle exec rspec
6 changes: 0 additions & 6 deletions .travis.yml

This file was deleted.

8 changes: 4 additions & 4 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ gemspec
group :development do
gem 'rubocop'

gem 'delayed_job', '~> 3.0.0'
gem 'delayed_job'
gem 'delayed_job_active_record'
gem 'rails', '~> 3.0'
gem 'rails'
gem 'resque'
gem 'sidekiq', '~> 3.5.1'
gem 'sucker_punch', '~> 2.1.2'
gem 'sidekiq'
gem 'sucker_punch'
end

group :test do
Expand Down
2 changes: 1 addition & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
require 'vero'
require 'json'

Dir[::File.expand_path('support/**/*.rb', __dir__)].sort.each { |f| require f }
Dir[File.expand_path('support/**/*.rb', __dir__)].sort.each { |f| require f }

RSpec.configure do |config|
config.expect_with :rspec do |expectations|
Expand Down

0 comments on commit 1f26a6e

Please sign in to comment.