Skip to content

Commit 51c588d

Browse files
Migrate CI to Github Actions (#250)
1 parent aad1306 commit 51c588d

File tree

3 files changed

+54
-17
lines changed

3 files changed

+54
-17
lines changed

.github/workflows/ci.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
---
2+
3+
name: ci
4+
5+
on:
6+
pull_request:
7+
8+
push:
9+
branches:
10+
- master
11+
12+
jobs:
13+
test:
14+
runs-on: ubuntu-20.04
15+
16+
timeout-minutes: 15
17+
18+
strategy:
19+
fail-fast: false
20+
21+
matrix:
22+
ruby: [2.5.8, 2.6.6, 2.7.1, jruby-9.2.11.1]
23+
24+
env:
25+
BUNDLE_PATH: vendor/bundle
26+
27+
steps:
28+
- uses: actions/checkout@v2
29+
30+
- uses: ruby/setup-ruby@v1
31+
with:
32+
ruby-version: 2.7.2
33+
bundler: none
34+
35+
- name: Install a specific rubygems version
36+
run: gem update --system 3.2.0.rc.1
37+
38+
- name: Install a specific bundler version
39+
run: gem install bundler -v 2.1.4
40+
41+
- name: Restore cached dependencies
42+
uses: actions/cache@v2
43+
with:
44+
path: ${{ env.BUNDLE_PATH }}
45+
key: gems-${{ matrix.ruby }}-${{ hashFiles('current_gemfile.lock') }}
46+
47+
- name: Install dependencies
48+
run: bundle install --jobs 3
49+
50+
- name: Run tests
51+
run: bundle exec rake

.travis.yml

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

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
[Arbre][docs] makes it easy to generate HTML directly in Ruby. This gem was extracted from [Active Admin](https://github.com/activeadmin/active_admin).
44

55
[![Version ][rubygems_badge]][rubygems]
6-
[![Travis CI ][travis_badge]][travis]
6+
[![Github Actions ][actions_badge]][actions]
77
[![Tidelift ][tidelift_badge]][tidelift]
88

99
## Goals
@@ -33,8 +33,8 @@ Tidelift will coordinate the fix and disclosure.
3333

3434
[rubygems_badge]: http://img.shields.io/gem/v/arbre.svg
3535
[rubygems]: https://rubygems.org/gems/arbre
36-
[travis_badge]: http://img.shields.io/travis/activeadmin/arbre/master.svg
37-
[travis]: https://travis-ci.org/activeadmin/arbre
36+
[actions_badge]: https://github.com/activeadmin/arbre/workflows/ci/badge.svg
37+
[actions]: https://github.com/activeadmin/arbre/actions
3838
[tidelift_badge]: https://tidelift.com/badges/github/activeadmin/arbre
3939
[tidelift]: https://tidelift.com/subscription/pkg/rubygems-arbre?utm_source=rubygems-arbre&utm_medium=referral&utm_campaign=readme
4040

0 commit comments

Comments
 (0)