diff --git a/.github/workflows/ruby.yml b/.github/workflows/ruby.yml new file mode 100644 index 00000000..41b55007 --- /dev/null +++ b/.github/workflows/ruby.yml @@ -0,0 +1,28 @@ +# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake +# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby + +name: Ruby + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + test: + + runs-on: ubuntu-latest + strategy: + matrix: + ruby-version: ['2.6', '2.7', '3.0', 'jruby-head'] + + steps: + - uses: actions/checkout@v2 + - name: Set up Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{ matrix.ruby-version }} + bundler-cache: true # runs 'bundle install' and caches installed gems automatically + - name: Run tests + run: bundle exec rspec diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 5fe5ae7a..00000000 --- a/.travis.yml +++ /dev/null @@ -1,31 +0,0 @@ -env: - global: - - JRUBY_OPTS="$JRUBY_OPTS --debug" - -sudo: false -language: ruby -cache: bundler - -before_install: - - gem update bundler - -before_script: - - bundle update - -script: - - bundle exec rspec - -rvm: - - 2.4 - - 2.5 - - 2.6 - - 2.7 - - jruby-head - - ruby-head - -matrix: - allow_failures: - - rvm: ruby-head - - fast_finish: true -