Skip to content

Commit

Permalink
support sinatra v3 and add github actions
Browse files Browse the repository at this point in the history
Make the gem requirement more permissive to allow support for Sinatra 3.
Additionally, use GitHub Actions rather than Travis CI for testing PRs.

Resolves: #4
  • Loading branch information
tubbo committed Oct 25, 2022
1 parent 7eedfb4 commit c07541b
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 20 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: CI

on:
push:

permissions:
contents: read

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
ruby-version: ['2.6', '2.7', '3.0', '3.1', 'jruby']

steps:
- uses: actions/checkout@v3
- name: Install redis
run: sudo apt-get install -y --no-install-recommends redis-server
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
- name: Run tests
run: bundle exec rake
19 changes: 0 additions & 19 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion redis-sinatra.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Gem::Specification.new do |s|
s.require_paths = ['lib']

s.add_dependency 'redis-store', '>= 1.1', '< 2'
s.add_dependency 'sinatra', '>= 1', '< 3'
s.add_dependency 'sinatra', '>= 1', '< 4'

s.add_development_dependency 'rake', '>= 12.3.3'
s.add_development_dependency 'bundler', '~> 1.3'
Expand Down

0 comments on commit c07541b

Please sign in to comment.