Skip to content

Commit

Permalink
Use GitHub Actions for CI
Browse files Browse the repository at this point in the history
  • Loading branch information
orien committed Jan 14, 2023
1 parent e965bde commit 546127f
Show file tree
Hide file tree
Showing 9 changed files with 31 additions and 62 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
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.13', '4.1.16', '4.2.11.3', '5.0.7.2', '5.1.7', '5.2.0' ]
exclude:
- { ruby: '2.0', rails: '5.2.0' }
- { ruby: '2.0', rails: '5.1.7' }
- { ruby: '2.0', rails: '5.0.7.2' }
- { ruby: '2.1', rails: '5.2.0' }
- { ruby: '2.1', rails: '5.1.7' }
- { ruby: '2.1', rails: '5.0.7.2' }
env:
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/ci.gemfile
RAILS_VERSION: ${{ matrix.rails }}
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
2 changes: 1 addition & 1 deletion gemfiles/rails5_0.gemfile → gemfiles/ci.gemfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
source "https://rubygems.org"

gem "activesupport", "~>5.0.0"
gem "activesupport", ENV.fetch('RAILS_VERSION')
gem "i18n"

gemspec path: "../"
6 changes: 0 additions & 6 deletions gemfiles/rails4_0.gemfile

This file was deleted.

6 changes: 0 additions & 6 deletions gemfiles/rails4_1.gemfile

This file was deleted.

6 changes: 0 additions & 6 deletions gemfiles/rails4_2.gemfile

This file was deleted.

6 changes: 0 additions & 6 deletions gemfiles/rails5_1.gemfile

This file was deleted.

6 changes: 0 additions & 6 deletions gemfiles/rails5_2.gemfile

This file was deleted.

0 comments on commit 546127f

Please sign in to comment.