diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..ef37008 --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,28 @@ +name: Run tests +on: + - push +jobs: + run-tests: + strategy: + fail-fast: false + matrix: + version: + - 3.2.2 + - 3.1.4 + - 3.0.6 + - 2.7.8 + - 2.6.10 + runs-on: ubuntu-latest + env: + CI: true + BUNDLE_GEMFILE: ${{ github.workspace }}/graphql-latest.gemfile + steps: + - name: Checkout a commit + uses: actions/checkout@v4 + - name: Set up Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{ matrix.version }} + bundler-cache: true + - name: Run tests + run: bundle exec rspec diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 06da463..0000000 --- a/.travis.yml +++ /dev/null @@ -1,16 +0,0 @@ -language: ruby -before_install: gem install bundler -v 2.0.1 -arch: - - amd64 - - ppc64le -rvm: - - 2.3.8 - - 2.4.10 - - 2.5.8 - - 2.6.6 - - 2.7.2 - - 3.0.0 -env: - - CI=true -gemfile: - - graphql-latest.gemfile diff --git a/README.md b/README.md index 9309bf4..2097e82 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,5 @@ # BatchLoader -[![Build Status](https://travis-ci.org/exAspArk/batch-loader.svg?branch=master)](https://travis-ci.org/exAspArk/batch-loader) [![Coverage Status](https://coveralls.io/repos/github/exAspArk/batch-loader/badge.svg)](https://coveralls.io/github/exAspArk/batch-loader) [![Code Climate](https://img.shields.io/codeclimate/maintainability/exAspArk/batch-loader.svg)](https://codeclimate.com/github/exAspArk/batch-loader/maintainability) [![Downloads](https://img.shields.io/gem/dt/batch-loader.svg)](https://rubygems.org/gems/batch-loader) diff --git a/graphql-latest.gemfile b/graphql-latest.gemfile index 5a20031..48c1103 100644 --- a/graphql-latest.gemfile +++ b/graphql-latest.gemfile @@ -2,6 +2,6 @@ source "https://rubygems.org" gem 'coveralls' -gem "graphql", ">= 1.8" +gem "graphql", "~> 1.8" gemspec