diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..5c7c3f5 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,18 @@ +--- +name: Tests +on: [ push, pull_request ] +jobs: + test: + name: Test (Ruby ${{ matrix.ruby }}) + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + ruby: [ '2.0', '2.1', '2.2', '2.3', '2.4', '2.5', '2.6', '2.7', '3.0', '3.1', '3.2', 'jruby', 'truffleruby' ] + steps: + - uses: actions/checkout@v3 + - 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 dcc6420..0000000 --- a/.travis.yml +++ /dev/null @@ -1,11 +0,0 @@ -language: ruby -rvm: - - ruby-head - - 2.5 - - 2.4 - - 2.3 - - 2.2 - - truffleruby-head -matrix: - allow_failures: - - rvm: ruby-head diff --git a/Gemfile b/Gemfile index 774e3c7..ec68d37 100644 --- a/Gemfile +++ b/Gemfile @@ -3,7 +3,3 @@ gemspec gem 'rake' gem 'guard-rspec' - -platforms :rbx do - gem 'rubysl', '~> 2.0' -end diff --git a/README.md b/README.md index 6bbc558..2944bcc 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ ### `String#blank?` Ruby Extension -[![Gem Version](https://badge.fury.io/rb/fast_blank.png)](http://badge.fury.io/rb/fast_blank) [![Build Status](https://travis-ci.org/SamSaffron/fast_blank.png?branch=master)](https://travis-ci.org/SamSaffron/fast_blank) +[![Gem Version](https://badge.fury.io/rb/fast_blank.svg)](http://badge.fury.io/rb/fast_blank) [![Build Status](https://github.com/SamSaffron/fast_blank/actions/workflows/test.yml/badge.svg?branch=master)](https://github.com/SamSaffron/fast_blank/actions/workflows/test.yml) `fast_blank` is a simple C extension which provides a fast implementation of [Active Support's `String#blank?` method](http://api.rubyonrails.org/classes/String.html#method-i-blank-3F).