diff --git a/.github/workflows/development.yml b/.github/workflows/development.yml new file mode 100644 index 0000000..e9205a1 --- /dev/null +++ b/.github/workflows/development.yml @@ -0,0 +1,29 @@ +name: Development + +on: [push, pull_request] + +jobs: + test: + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest, macos-latest] + ruby: [2.4, 2.5, 2.6, 2.7, '3.0', 3.1, jruby, truffleruby-head] + runs-on: ${{matrix.os}} + steps: + - uses: actions/checkout@v2 + + - name: Installing packages (ubuntu) + if: matrix.os == 'ubuntu-latest' + run: sudo apt-get install libmemcached-dev + + - name: Installing packages (macos) + if: matrix.os == 'macos-latest' + run: brew install libmemcached + + - uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{matrix.ruby}} + bundler-cache: true + + - run: bundle exec rake diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index e815614..0000000 --- a/.travis.yml +++ /dev/null @@ -1,14 +0,0 @@ -language: ruby -cache: bundler -branches: - only: master -rvm: - - 2.3 - - 2.4 - - 2.5 - - 2.6 - - ruby-head -matrix: - allow_failures: - - rvm: ruby-head - fast_finish: true diff --git a/Gemfile b/Gemfile index 92ee27c..15457ef 100644 --- a/Gemfile +++ b/Gemfile @@ -1,4 +1,4 @@ source "https://rubygems.org" gemspec -gem 'rack', '~> 1.6' if ENV['RUBY_VERSION'] =~ /^1\.9|2\.0/ +gem 'dalli', '~> 2.7' if RUBY_VERSION <= "2.4"