Skip to content

Commit 964aba3

Browse files
committed
Migrate CI from Travis to GitHub Actions
1 parent 6fed80c commit 964aba3

File tree

2 files changed

+23
-16
lines changed

2 files changed

+23
-16
lines changed

.github/workflows/ci.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: CI
2+
on:
3+
pull_request:
4+
push: { branches: master }
5+
permissions:
6+
contents: read
7+
jobs:
8+
test:
9+
runs-on: ubuntu-latest
10+
strategy:
11+
fail-fast: false
12+
matrix:
13+
ruby-version: ['2.3', '2.4', '2.5', '2.6', '2.7', '3.0', '3.1', 'ruby-head']
14+
continue-on-error: ${{ matrix.ruby-version == 'ruby-head' }}
15+
steps:
16+
- uses: actions/checkout@v3
17+
- name: Set up Ruby ${{ matrix.ruby-version }}
18+
uses: ruby/setup-ruby@v1
19+
with:
20+
ruby-version: ${{ matrix.ruby-version }}
21+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
22+
- name: Run Tests
23+
run: bundle exec rake test

.travis.yml

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

0 commit comments

Comments
 (0)