From add7fa6d3e467f61b23cb83892fcb69fbd760dd1 Mon Sep 17 00:00:00 2001 From: Scott Walkinshaw Date: Tue, 12 Jan 2021 13:03:21 -0500 Subject: [PATCH 1/3] Add GitHub CI workflow --- .github/workflows/ci.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..6c5876b --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,24 @@ +name: Tests + +on: + push + +jobs: + test: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + ruby: [2.3, 2.6, 2.7] + graphql_version: ['1.9.19', '1.10.2'] + steps: + - uses: actions/checkout@v2 + - uses: ruby/setup-ruby@v1 + with: + bundler-cache: true + ruby-version: ${{ matrix.ruby }} + env: + GRAPHQL_VERSION: ${{ matrix.graphql_version }} + TESTING_LEGACY_DEFINITION_LAYER: ${{ startsWith(matrix.graphql_version, '1.9') }} + - run: bundle install + - run: bundle exec rake From d9b32b476767eb6ceb5a22cff4f24c9730c500f6 Mon Sep 17 00:00:00 2001 From: Scott Walkinshaw Date: Tue, 12 Jan 2021 13:28:53 -0500 Subject: [PATCH 2/3] Remove .travis.yml config --- .travis.yml | 11 ----------- 1 file changed, 11 deletions(-) delete mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index c5ffb7a..0000000 --- a/.travis.yml +++ /dev/null @@ -1,11 +0,0 @@ -language: ruby -rvm: - - 2.3 - - 2.7 -env: - - - GRAPHQL_VERSION: 1.9.19 - TESTING_LEGACY_DEFINITION_LAYER: true - - - GRAPHQL_VERSION: 1.10.2 - TESTING_LEGACY_DEFINITION_LAYER: false From 8cbc2062a8d2003bca6c5cf777a4819387576249 Mon Sep 17 00:00:00 2001 From: Scott Walkinshaw Date: Tue, 12 Jan 2021 13:33:32 -0500 Subject: [PATCH 3/3] Exclude vendor for Rubocop --- .rubocop.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.rubocop.yml b/.rubocop.yml index cb3ea98..01f2cde 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -3,4 +3,6 @@ inherit_from: - .rubocop_todo.yml AllCops: - TargetRubyVersion: 2.3 + TargetRubyVersion: 2.7 + Exclude: + - vendor/**/*