From 4017f416280b1b8d3149e57981713071b3a62b82 Mon Sep 17 00:00:00 2001 From: Weston Ganger Date: Tue, 11 Jan 2022 18:29:20 -0800 Subject: [PATCH 1/2] Switch CI from Travis to Github Actions --- .github/workflows/test.yml | 42 ++++++++++++++++++++++++++++++++++++++ .travis.yml | 12 ----------- README.md | 2 +- 3 files changed, 43 insertions(+), 13 deletions(-) create mode 100644 .github/workflows/test.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..26ed780 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,42 @@ +name: Test +on: + push: + branches: ['*'] + pull_request: + branches: ['*'] + +jobs: + test_sqlite: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + include: + ### TEST ALL RUBY VERSIONS + - ruby: 2.3 ### min version supported by Bundler 2.x, ruby: 2.3 + - ruby: 2.4 + - ruby: 2.5 + - ruby: 2.6 + - ruby: 2.7 + - ruby: "3.0" ### must be quoted otherwise will be treated as "3" which resolves to latest 3.x version + - ruby: 3.1 + + env: + BUNDLE_GEMFILE: "${{ matrix.gemfile }}" + + steps: + - uses: actions/checkout@v2 + + - name: Install ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: "${{ matrix.ruby }}" + + - name: Bundle + run: | + gem install bundler + bundle install + + - name: Run tests + run: | + bundle exec rake diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index a8d9829..0000000 --- a/.travis.yml +++ /dev/null @@ -1,12 +0,0 @@ -script: "rspec spec" -notifications: - email: - - john.crepezzi@gmail.com -branches: - only: - - master -rvm: - - 2.0.0 - - 2.1.0 - - 2.3.0 - - jruby diff --git a/README.md b/README.md index 069690e..e40aa70 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ ## EasyTranslate -[![Build Status](https://secure.travis-ci.org/seejohnrun/easy_translate.png)](http://travis-ci.org/seejohnrun/easy_translate) +CI Status This is a Ruby library for Google Translate that makes working with bulk calls, user_ips and access via API Key easy. From 6e4034a73614e50ef087553c743927efa9cfab04 Mon Sep 17 00:00:00 2001 From: Weston Ganger Date: Tue, 11 Jan 2022 18:43:11 -0800 Subject: [PATCH 2/2] Add note about being grpc dependency free --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 069690e..f4892ae 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,8 @@ This is a Ruby library for Google Translate that makes working with bulk calls, user_ips and access via API Key easy. +Unlike the official google client, `easy_translate` does not have a dependency on the `grpc` gem. This is a huge advantage because `grpc` can be extremely difficult to install on some systems or configurations. + --- ### Installation