Skip to content

Commit

Permalink
Merge pull request #11 from petergoldstein/feature/add_gh_actions
Browse files Browse the repository at this point in the history
Migrate to GitHub Actions
  • Loading branch information
etagwerker authored Jan 27, 2022
2 parents 1803fbe + e88b1d4 commit e8389c2
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 9 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Tests

on: [push, pull_request]

jobs:
test:
name: 'Ruby: ${{ matrix.ruby }}'
runs-on: 'ubuntu-20.04'
strategy:
fail-fast: false
matrix:
ruby: ['3.1', '3.0', '2.7', '2.6', '2.5']
steps:
- uses: actions/checkout@v2
- name: Set up Ruby ${{ matrix.ruby }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true # 'bundle install' and cache
- name: Run tests
run: bundle exec rake

services:
redis:
image: redis
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 6379:6379

9 changes: 0 additions & 9 deletions .travis.yml

This file was deleted.

0 comments on commit e8389c2

Please sign in to comment.