diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..1cd06e4 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,21 @@ +--- +name: Tests +on: [ push, pull_request ] +jobs: + test: + name: Test (Ruby ${{ matrix.ruby }}) + runs-on: ubuntu-${{ matrix.ubuntu }} + strategy: + fail-fast: false + matrix: + ruby: [ '3.3', '3.2', '3.1', '3.0', '2.7', '2.6', '2.5', '2.4', '2.3', 'jruby-9.4' ] + ubuntu: [ 'latest' ] + include: + - { ruby: '2.2', ubuntu: '20.04' } + steps: + - uses: actions/checkout@v4 + - 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 4cf28fd..0000000 --- a/.travis.yml +++ /dev/null @@ -1,14 +0,0 @@ -language: ruby -cache: bundler -sudo: false - -before_install: - - gem update --system - -rvm: - - 2.2 - - 2.3 - - 2.4 - - 2.5 - - 2.6 - - jruby-head diff --git a/README.md b/README.md index fda1b7e..b4a7e7d 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # UserAgent -[![Build Status](https://travis-ci.org/gshutler/useragent.svg?branch=master)](https://travis-ci.org/gshutler/useragent) +[![Build Status](https://github.com/gshutler/useragent/actions/workflows/test.yml/badge.svg)](https://github.com/gshutler/useragent/actions/workflows/test.yml) [![Gem Version](https://badge.fury.io/rb/useragent.svg)](http://badge.fury.io/rb/useragent) UserAgent is a Ruby library that parses and compares HTTP User Agents. diff --git a/useragent.gemspec b/useragent.gemspec index dc2c5eb..953ae63 100644 --- a/useragent.gemspec +++ b/useragent.gemspec @@ -8,7 +8,7 @@ Gem::Specification.new do |s| s.files = Dir["LICENSE", "README.md", "lib/**/*.rb"] - s.add_development_dependency "rake", "~> 10.0" + s.add_development_dependency "rake", "~> 13.0" s.add_development_dependency "rspec", "~> 3.0" s.authors = ["Joshua Peek", "Garry Shutler"]