Skip to content

Commit b9d2a15

Browse files
authored
Replace travis with Github Actions CI (#59)
* Try github actions * Use bundler: latest * Add README badge
1 parent ae48381 commit b9d2a15

3 files changed

Lines changed: 34 additions & 13 deletions

File tree

.github/workflows/ci.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# .github/workflows/ci.yml
2+
3+
name: Ruby CI
4+
5+
on:
6+
push:
7+
branches: [master]
8+
pull_request:
9+
branches: [master]
10+
11+
jobs:
12+
test:
13+
runs-on: ubuntu-latest
14+
strategy:
15+
fail-fast: false # Don't cancel other matrix jobs if one fails
16+
matrix:
17+
ruby-version: ['2.3', '2.4', '2.5', '2.6', '2.7', '3.0', '3.1', '3.2', '3.3']
18+
19+
steps:
20+
- name: Checkout code
21+
uses: actions/checkout@v4
22+
23+
- name: Set up Ruby ${{ matrix.ruby-version }}
24+
uses: ruby/setup-ruby@v1
25+
with:
26+
ruby-version: ${{ matrix.ruby-version }}
27+
bundler: latest
28+
# This automatically runs 'bundle install' and caches gems
29+
# It uses the Gemfile.lock for efficient caching
30+
bundler-cache: true
31+
32+
- name: Run RSpec tests
33+
run: bundle exec rspec

.travis.yml

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

README.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# algorithms [![Build Status](https://travis-ci.org/kanwei/algorithms.svg?branch=master)](https://travis-ci.org/github/kanwei/algorithms)
1+
# algorithms [![Ruby CI](https://github.com/kanwei/algorithms/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/kanwei/algorithms/actions/workflows/ci.yml)
22

33
[API Documentation](http://kanwei.github.io/algorithms/)
44

0 commit comments

Comments
 (0)