Skip to content

Commit dcb27fe

Browse files
authored
Move CI to GitHub actions, drop support for Ruby < 2.5 (#35)
1 parent 2eed480 commit dcb27fe

File tree

4 files changed

+48
-20
lines changed

4 files changed

+48
-20
lines changed

.github/workflows/ci.yml

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: CI build
2+
on: [push, pull_request]
3+
jobs:
4+
build:
5+
strategy:
6+
fail-fast: false
7+
matrix:
8+
os: [ubuntu-latest]
9+
ruby:
10+
- '2.5'
11+
- '2.6'
12+
- '2.7'
13+
- '3.0'
14+
- head
15+
- jruby
16+
- jruby-head
17+
- truffleruby
18+
- truffleruby-head
19+
runs-on: ${{ matrix.os }}
20+
steps:
21+
- uses: actions/checkout@v2
22+
- uses: ruby/setup-ruby@v1
23+
with:
24+
ruby-version: ${{ matrix.ruby }}
25+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
26+
- run: bundle exec rake
27+
# What's below helps having a single "status check" for mergeability, without
28+
# having to add each new version to the list of expected status checks in GitHub.
29+
# See https://github.community/t/status-check-for-a-matrix-jobs/127354/7
30+
global:
31+
if: ${{ always() }}
32+
runs-on: ubuntu-latest
33+
name: build (matrix)
34+
needs: build
35+
steps:
36+
- name: Check build matrix status
37+
if: ${{ needs.build.result != 'success' }}
38+
run: exit 1

.travis.yml

-18
This file was deleted.

Changes.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
HEAD
2+
----
3+
4+
- Drop support for Ruby < 2.5
5+
- Add compatibility for Kiba 4
6+
17
1.1.0
28
----
39

README.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
Kiba Common is a companion gem to [Kiba](https://github.com/thbar/kiba) and [Kiba Pro](https://github.com/thbar/kiba/blob/master/Pro-Changes.md) in which I'll share commonly used helpers.
22

3-
[![Build Status](https://travis-ci.org/thbar/kiba-common.svg?branch=master)](https://travis-ci.org/thbar/kiba-common) [![Gem Version](https://badge.fury.io/rb/kiba-common.svg)](https://badge.fury.io/rb/kiba-common)
3+
[![Gem Version](https://badge.fury.io/rb/kiba-common.svg)](https://badge.fury.io/rb/kiba-common)
4+
[![Build Status](https://github.com/thbar/kiba-common/actions/workflows/ci.yml/badge.svg)](https://github.com/thbar/kiba-common/actions)
45

56
## Usage
67

@@ -14,7 +15,8 @@ Then see below for each module usage & require clause.
1415

1516
## Supported Ruby versions
1617

17-
`kiba-common` currently supports Ruby 2.3+ and JRuby (with its default 1.9 syntax). See [test matrix](https://travis-ci.org/thbar/kiba-common).
18+
`kiba-common` currently supports Ruby 2.5+, JRuby 9.2+ and TruffleRuby. See [test matrix](https://github.com/thbar/kiba-common/actions).
19+
1820

1921
## Available components
2022

0 commit comments

Comments
 (0)