Skip to content

Commit 12ef08b

Browse files
authored
Merge pull request #93 from barmintor/gh-actions
Move CI to github actions (fixes #87)
2 parents 08b324d + dd63b5f commit 12ef08b

File tree

3 files changed

+40
-20
lines changed

3 files changed

+40
-20
lines changed

.github/workflows/ci.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ '*' ]
6+
7+
jobs:
8+
test_matrix:
9+
runs-on: ubuntu-latest
10+
strategy:
11+
matrix:
12+
ruby-version: ['2.5.8', '2.7.6', 'jruby-9.2.20.1']
13+
gemfile:
14+
- rails_52
15+
- rails_60
16+
- rails_61
17+
include:
18+
- ruby-version: 2.2.10
19+
gemfile: rails_52
20+
- ruby-version: 2.7.6
21+
gemfile: rails_70
22+
exclude:
23+
- ruby-version: 2.7.6
24+
gemfile: rails_52
25+
26+
env:
27+
RAILS_ENV: test
28+
29+
steps:
30+
- uses: actions/checkout@v2
31+
- name: Add --no-document option to .gemrc file to speed up bundle install
32+
run: "echo 'gem: --no-document' > ~/.gemrc"
33+
- name: Set up Ruby
34+
uses: ruby/setup-ruby@v1
35+
with:
36+
ruby-version: ${{ matrix.ruby-version }}
37+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
38+
- name: Run CI task
39+
run: bundle exec rake

.travis.yml

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

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
ruby-oai
22
========
3-
4-
[![Build Status](https://travis-ci.org/code4lib/ruby-oai.svg?branch=master)](https://travis-ci.org/code4lib/ruby-oai)
3+
[![Build Status](https://github.com/code4lib/ruby-oai/workflows/CI/badge.svg)](https://github.com/code4lib/ruby-oai/actions)
54

65
[![Gem Version](https://badge.fury.io/rb/kithe.svg)](https://badge.fury.io/rb/oai)
76

0 commit comments

Comments
 (0)