From e966d3f45555e5342e7d8ba746cc27fed83db75d Mon Sep 17 00:00:00 2001 From: Yogesh Khater Date: Mon, 8 Mar 2021 23:04:30 +0530 Subject: [PATCH] Setup GH CI action and remove travis.yml --- .github/workflows/ci.yml | 17 +++++++++++++++++ .travis.yml | 9 --------- 2 files changed, 17 insertions(+), 9 deletions(-) create mode 100644 .github/workflows/ci.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..a355704 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,17 @@ +name: CI +on: [push, pull_request] +jobs: + test: + strategy: + fail-fast: false + matrix: + # Due to https://github.com/actions/runner/issues/849, we have to use quotes for '3.0' + ruby: [2.5, 2.6, 2.7, '3.0', head, jruby, jruby-head] + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{ matrix.ruby }} + bundler-cache: true # runs 'bundle install' and caches installed gems automatically + - run: bundle exec rake diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 200cf6f..0000000 --- a/.travis.yml +++ /dev/null @@ -1,9 +0,0 @@ -language: ruby -before_install: gem install bundler -cache: bundler -rvm: - - 3.0 - - 2.7 - - 2.6 - - 2.5 - - 2.4