From 0efd2c89e80ff3ac243d1692a793dd89ddf0b9f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20A=C3=9Fmann?= <tassmann@jovoto.com> Date: Tue, 18 Jan 2022 23:42:37 +0100 Subject: [PATCH] update dependencies and test against ruby 2.7 plus use github actions instead of travis --- .github/workflows/build_and_test.yml | 23 +++++++++++++++++++++++ .ruby-version | 2 +- .travis.yml => .travis_outdated.yml | 0 stream_reader.gemspec | 6 +++--- 4 files changed, 27 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/build_and_test.yml rename .travis.yml => .travis_outdated.yml (100%) diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml new file mode 100644 index 0000000..f180741 --- /dev/null +++ b/.github/workflows/build_and_test.yml @@ -0,0 +1,23 @@ +name: Tests + +on: [push] # without pull_request for the moment + +jobs: + build: + name: 'ruby-2.7)' + # skip on [ci skip] and do not run 2 on push and interal PR + if: (contains(github.event.commits[0].message, '[ci skip]') == false) && (github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository) + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - uses: ruby/setup-ruby@v1 + with: + ruby-version: 2.7.4 + bundler-cache: true + + - name: Run specs + run: | + bundle exec rake diff --git a/.ruby-version b/.ruby-version index 2bf1c1c..a4dd9db 100644 --- a/.ruby-version +++ b/.ruby-version @@ -1 +1 @@ -2.3.1 +2.7.4 diff --git a/.travis.yml b/.travis_outdated.yml similarity index 100% rename from .travis.yml rename to .travis_outdated.yml diff --git a/stream_reader.gemspec b/stream_reader.gemspec index b225593..84b4fb0 100644 --- a/stream_reader.gemspec +++ b/stream_reader.gemspec @@ -23,11 +23,11 @@ Gem::Specification.new do |spec| spec.add_dependency 'redis', '~> 3.2.2' spec.add_dependency 'activesupport' spec.add_dependency 'librato-metrics' + spec.add_dependency 'faraday', '~> 1.8' - spec.add_development_dependency 'bundler', '~> 1.10' - spec.add_development_dependency 'rake', '~> 10.0' + spec.add_development_dependency 'bundler', '~> 2.1' + spec.add_development_dependency 'rake', '~> 13.0' spec.add_development_dependency 'rspec' spec.add_development_dependency 'fakeredis' spec.add_development_dependency 'pry' end -