Skip to content

Commit 4017f41

Browse files
committed
Switch CI from Travis to Github Actions
1 parent 23c05f3 commit 4017f41

File tree

3 files changed

+43
-13
lines changed

3 files changed

+43
-13
lines changed

.github/workflows/test.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Test
2+
on:
3+
push:
4+
branches: ['*']
5+
pull_request:
6+
branches: ['*']
7+
8+
jobs:
9+
test_sqlite:
10+
runs-on: ubuntu-latest
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
include:
15+
### TEST ALL RUBY VERSIONS
16+
- ruby: 2.3 ### min version supported by Bundler 2.x, ruby: 2.3
17+
- ruby: 2.4
18+
- ruby: 2.5
19+
- ruby: 2.6
20+
- ruby: 2.7
21+
- ruby: "3.0" ### must be quoted otherwise will be treated as "3" which resolves to latest 3.x version
22+
- ruby: 3.1
23+
24+
env:
25+
BUNDLE_GEMFILE: "${{ matrix.gemfile }}"
26+
27+
steps:
28+
- uses: actions/checkout@v2
29+
30+
- name: Install ruby
31+
uses: ruby/setup-ruby@v1
32+
with:
33+
ruby-version: "${{ matrix.ruby }}"
34+
35+
- name: Bundle
36+
run: |
37+
gem install bundler
38+
bundle install
39+
40+
- name: Run tests
41+
run: |
42+
bundle exec rake

.travis.yml

Lines changed: 0 additions & 12 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## EasyTranslate
22

3-
[![Build Status](https://secure.travis-ci.org/seejohnrun/easy_translate.png)](http://travis-ci.org/seejohnrun/easy_translate)
3+
<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>
44

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

0 commit comments

Comments
 (0)