Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use GitHub Actions for CI #62

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
name: Tests
on: [ push, pull_request ]
jobs:
test:
name: Test (Ruby ${{ matrix.ruby }}, Rails ${{ matrix.rails }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby: [ '2.0', '2.1', '2.2', '2.3', '2.4', '2.5', '2.6', 'jruby-9.1' ]
rails: [ '4.0', '4.1', '4.2', '5.0', '5.1', '5.2' ]
exclude:
- { ruby: '2.0', rails: '5.2' }
- { ruby: '2.0', rails: '5.1' }
- { ruby: '2.0', rails: '5.0' }
- { ruby: '2.1', rails: '5.2' }
- { ruby: '2.1', rails: '5.1' }
- { ruby: '2.1', rails: '5.0' }
Comment on lines +10 to +19
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To limit scope of this PR, I've replicated the matrix that was used in the travis-ci pipeline.

The introduction of new versions of Ruby and Rails can be done in subsequent pull requests.

env:
BUNDLE_GEMFILE: gemfiles/rails-${{ matrix.rails }}.gemfile
steps:
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- run: bundle exec rake
30 changes: 0 additions & 30 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Flip — flip your features
================

[![Build Status](https://travis-ci.org/pda/flip.svg?branch=master)](https://travis-ci.org/pda/flip)
[![Build Status](https://github.com/pda/flip/actions/workflows/test.yml/badge.svg?branch=master)](https://github.com/pda/flip/actions/workflows/test.yml)

**Flip** provides a declarative, layered way of enabling and disabling application functionality at run-time.

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.