diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..846fcf9 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,36 @@ +name: CI + +on: + push: + branches: + - master + pull_request: + - "*" + +jobs: + test: + strategy: + fail-fast: false + matrix: + os: [ubuntu] + # We still kind of support Ruby 1.8.7 + ruby: [2.5, 2.6, 2.7, 3.0, head, jruby] + + name: >- + ${{matrix.os}}-ruby${{matrix.ruby}} + runs-on: ${{matrix.os}}-latest + continue-on-error: ${{matrix.ruby == 'head' || matrix.ruby == 'jruby'}} + + steps: + - name: Check out + uses: actions/checkout@v2 + + - name: Set up ruby and bundle + uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{matrix.ruby}} + bundler-cache: true + + - name: Run rake + run: | + bundle exec rake diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index b778b6b..0000000 --- a/.travis.yml +++ /dev/null @@ -1,21 +0,0 @@ -sudo: false -language: ruby -cache: bundler -rvm: - - 1.8.7 - - ree - - 1.9.3 - - 2.0.0 - - 2.1 - - 2.2 - - 2.3.0 - - ruby-head - - jruby-1.7 - - jruby-9 - - rbx-2 -matrix: - allow_failures: - - rvm: ruby-head - - rvm: rbx-2 -before_install: - - gem update bundler