Skip to content

Commit 3fbbb6a

Browse files
committed
gh-229 Port CI from obsolete travis-CI to GitHub actions
1 parent 341fc3a commit 3fbbb6a

File tree

3 files changed

+30
-27
lines changed

3 files changed

+30
-27
lines changed

.github/workflows/test.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Test
2+
on:
3+
push:
4+
branches:
5+
- develop
6+
- 1-2-stable
7+
pull_request:
8+
jobs:
9+
test:
10+
name: Test
11+
runs-on: ubuntu-latest
12+
timeout-minutes: 15
13+
strategy:
14+
matrix:
15+
ruby: [2.4, 2.7, 3.0]
16+
steps:
17+
- name: Checkout code
18+
uses: actions/checkout@v3
19+
- name: Set up Ruby
20+
uses: ruby/setup-ruby@v1
21+
with:
22+
ruby-version: ${{ matrix.ruby }}
23+
bundler-cache: true # Also installs gems
24+
- name: Install prerequisites for tests
25+
run: sudo apt-get install -y graphviz
26+
- name: Run tests
27+
run: bundle exec rake test
28+

.travis.yml

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

README.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66

77
# Workflow
88

9-
image:https://badge.fury.io/rb/workflow.svg[link=https://badge.fury.io/rb/workflow]
10-
image:https://travis-ci.org/geekq/workflow.svg[link=https://travis-ci.org/geekq/workflow]
9+
image:https://img.shields.io/gem/v/workflow.svg[link=https://rubygems.org/gems/workflow]
10+
image:https://github.com/geekq/workflow/actions/workflows/test.yml/badge.svg[link=https://github.com/geekq/workflow/actions/workflows/test.yml]
1111
image:https://codeclimate.com/github/geekq/workflow/badges/gpa.svg[link=https://codeclimate.com/github/geekq/workflow]
1212
image:https://codeclimate.com/github/geekq/workflow/badges/coverage.svg[link=https://codeclimate.com/github/geekq/workflow/coverage]
1313

0 commit comments

Comments
 (0)