Skip to content

Commit e88b1d4

Browse files
Migrate to GitHub Actions
1 parent 1803fbe commit e88b1d4

File tree

2 files changed

+33
-9
lines changed

2 files changed

+33
-9
lines changed

.github/workflows/ci.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Tests
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
test:
7+
name: 'Ruby: ${{ matrix.ruby }}'
8+
runs-on: 'ubuntu-20.04'
9+
strategy:
10+
fail-fast: false
11+
matrix:
12+
ruby: ['3.1', '3.0', '2.7', '2.6', '2.5']
13+
steps:
14+
- uses: actions/checkout@v2
15+
- name: Set up Ruby ${{ matrix.ruby }}
16+
uses: ruby/setup-ruby@v1
17+
with:
18+
ruby-version: ${{ matrix.ruby }}
19+
bundler-cache: true # 'bundle install' and cache
20+
- name: Run tests
21+
run: bundle exec rake
22+
23+
services:
24+
redis:
25+
image: redis
26+
options: >-
27+
--health-cmd "redis-cli ping"
28+
--health-interval 10s
29+
--health-timeout 5s
30+
--health-retries 5
31+
ports:
32+
- 6379:6379
33+

.travis.yml

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

0 commit comments

Comments
 (0)