Skip to content

Commit

Permalink
Merge pull request #52 from westonganger/switch_to_github_actions
Browse files Browse the repository at this point in the history
Switch CI from Travis to Github Actions
  • Loading branch information
seejohnrun committed Apr 2, 2024
2 parents babe871 + 4017f41 commit 07ee415
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 13 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -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
12 changes: 0 additions & 12 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## EasyTranslate

[![Build Status](https://secure.travis-ci.org/seejohnrun/easy_translate.png)](http://travis-ci.org/seejohnrun/easy_translate)
<a href='https://github.com/seejohnrun/easy_translate/actions' target='_blank'><img src="https://github.com/seejohnrun/easy_translate/workflows/Test/badge.svg" style="max-width:100%;" height='21' style='border:0px;height:21px;' border='0' alt="CI Status"></a>

This is a Ruby library for Google Translate that makes working with bulk calls,
user_ips and access via API Key easy.
Expand Down

0 comments on commit 07ee415

Please sign in to comment.