Skip to content

Commit 57f216d

Browse files
committed
Replace Travis CI build with GitHub Action
travis-ci.org is shutting down and Open Source support will be severely limited on travis-ci.com. Build with GitHub Actions instead. Differences with the existing build: - Added 3.0 - Removed ruby-head. GitHub Actions always fail when one of the builds fails.
1 parent 2228ac8 commit 57f216d

2 files changed

Lines changed: 31 additions & 18 deletions

File tree

.github/workflows/ruby.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# This workflow will download a prebuilt Ruby version, install dependencies and
2+
# run tests with Rake
3+
# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
4+
5+
name: Ruby
6+
7+
on:
8+
push:
9+
branches: [ master ]
10+
pull_request:
11+
branches: [ master ]
12+
13+
jobs:
14+
test:
15+
16+
runs-on: ubuntu-latest
17+
18+
strategy:
19+
matrix:
20+
ruby: [2.5, 2.6, 2.7, "3.0"]
21+
22+
steps:
23+
- uses: actions/checkout@v2
24+
25+
- name: Set up Ruby
26+
uses: ruby/setup-ruby@v1
27+
with:
28+
ruby-version: ${{ matrix.ruby }}
29+
bundler-cache: true
30+
- name: Run tests
31+
run: bundle exec rake spec

.travis.yml

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

0 commit comments

Comments
 (0)