Skip to content

Commit

Permalink
Ruby3 (#51)
Browse files Browse the repository at this point in the history
* updating ruby to 3

* test ruby 3

* added github actions

* add webrick in dependencies
  • Loading branch information
arturictus committed Sep 27, 2021
1 parent c1ce51d commit 5d8aca5
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 1 deletion.
41 changes: 41 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Ruby CI

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
test:
runs-on: ubuntu-latest

strategy:
matrix:
ruby-version: [3.0.x, 2.7.x, 2.6.x, 2.5.x]
# Service containers to run with `runner-job`
services:
# Label used to access the service container
redis:
# Docker Hub image
image: redis
# Set health checks to wait until redis has started
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
# Maps port 6379 on service container to the host
- 6379:6379

steps:
- uses: actions/checkout@v2
- name: Set up Ruby ${{ matrix.ruby-version }}
uses: ruby/setup-ruby@477b21f02be01bcb8030d50f37cfec92bfa615b6
with:
ruby-version: ${{ matrix.ruby-version }}
- name: Install dependencies
run: bundle install
- name: Run tests
run: bundle exec rspec
2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ruby 2.7.4
ruby 3.0.2
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ rvm:
- 2.4.4
- 2.5.5
- 2.6.2
- 2.7.4
- 3.0.2
- ruby-head
matrix:
allow_failures:
Expand Down
2 changes: 2 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ PATH
specs:
sidekiq_alive (2.1.3)
sidekiq
webrick

GEM
remote: https://rubygems.org/
Expand Down Expand Up @@ -43,6 +44,7 @@ GEM
rack (>= 1.5.0)
rack-protection (>= 1.5.0)
redis (>= 3.3.5, < 5)
webrick (1.7.0)

PLATFORMS
ruby
Expand Down
1 change: 1 addition & 0 deletions sidekiq_alive.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,5 @@ Gem::Specification.new do |spec|
spec.add_development_dependency 'rspec', '~> 3.0'
spec.add_development_dependency 'rspec-sidekiq', '~> 3.0'
spec.add_dependency 'sidekiq'
spec.add_dependency 'webrick'
end

0 comments on commit 5d8aca5

Please sign in to comment.