Skip to content

Commit

Permalink
Merge pull request #98 from lucascaton/github-actions
Browse files Browse the repository at this point in the history
Replace Travis with GitHub Actions
  • Loading branch information
lucascaton authored Aug 5, 2021
2 parents 0ebb435 + e055001 commit 96092a1
Show file tree
Hide file tree
Showing 7 changed files with 73 additions and 59 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: CI

on: [push, pull_request]

jobs:
test:
strategy:
fail-fast: false

matrix:
ruby:
- 2.5
- 2.6
- 2.7
- 3.0
gemfile:
- gemfiles/rails_5.0.gemfile
- gemfiles/rails_5.1.gemfile
- gemfiles/rails_5.2.gemfile
- gemfiles/rails_6.0.gemfile
- gemfiles/rails_6.1.gemfile
exclude:
# Rails < 6 does not support Ruby 3+:
# https://github.com/rails/rails/issues/40938#issuecomment-751357907
- ruby: 3.0
gemfile: gemfiles/rails_5.0.gemfile
- ruby: 3.0
gemfile: gemfiles/rails_5.1.gemfile
- ruby: 3.0
gemfile: gemfiles/rails_5.2.gemfile

env:
BUNDLE_GEMFILE: "${{ matrix.gemfile }}"

runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true

- name: Rubocop
if: ${{ matrix.ruby == '3.0' }}
run: "bundle exec rubocop"

- name: Tests
run: bundle exec rake spec
37 changes: 0 additions & 37 deletions .travis.yml

This file was deleted.

28 changes: 14 additions & 14 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7,32 +7,32 @@ PATH
GEM
remote: https://rubygems.org/
specs:
activesupport (6.1.3.1)
activesupport (6.1.4)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (>= 1.6, < 2)
minitest (>= 5.1)
tzinfo (~> 2.0)
zeitwerk (~> 2.3)
appraisal (2.4.0)
appraisal (2.4.1)
bundler
rake
thor (>= 0.14.0)
ast (2.4.2)
coderay (1.1.3)
concurrent-ruby (1.1.8)
concurrent-ruby (1.1.9)
diff-lcs (1.4.4)
i18n (1.8.10)
concurrent-ruby (~> 1.0)
method_source (1.0.0)
minitest (5.14.4)
parallel (1.20.1)
parser (3.0.1.0)
parser (3.0.2.0)
ast (~> 2.4.1)
pry (0.14.0)
pry (0.14.1)
coderay (~> 1.1)
method_source (~> 1.0)
rainbow (3.0.0)
rake (13.0.3)
rake (13.0.6)
regexp_parser (2.1.1)
rexml (3.2.5)
rspec (3.10.0)
Expand All @@ -48,20 +48,20 @@ GEM
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.10.0)
rspec-support (3.10.2)
rubocop (1.12.1)
rubocop (1.18.4)
parallel (~> 1.10)
parser (>= 3.0.0.0)
rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 1.8, < 3.0)
rexml
rubocop-ast (>= 1.2.0, < 2.0)
rubocop-ast (>= 1.8.0, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 1.4.0, < 3.0)
rubocop-ast (1.4.1)
parser (>= 2.7.1.5)
rubocop-rake (0.5.1)
rubocop
rubocop-rspec (2.2.0)
rubocop-ast (1.8.0)
parser (>= 3.0.1.1)
rubocop-rake (0.6.0)
rubocop (~> 1.0)
rubocop-rspec (2.4.0)
rubocop (~> 1.0)
rubocop-ast (>= 1.1.0)
ruby-progressbar (1.11.0)
Expand All @@ -88,4 +88,4 @@ DEPENDENCIES
wwtd

BUNDLED WITH
2.2.15
2.2.24
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Enumerations for Ruby with some magic powers! 🎩

[![Build Status](https://travis-ci.org/lucascaton/enumerate_it.svg?branch=main)](https://travis-ci.org/lucascaton/enumerate_it)
[![CI Status](https://github.com/lucascaton/enumerate_it/workflows/CI/badge.svg)](https://github.com/lucascaton/enumerate_it/actions?query=workflow%3ACI)
[![Gem Version](https://badge.fury.io/rb/enumerate_it.svg)](https://rubygems.org/gems/enumerate_it)
[![Code Climate](https://codeclimate.com/github/lucascaton/enumerate_it/badges/gpa.svg)](https://codeclimate.com/github/lucascaton/enumerate_it)
[![Downloads](https://img.shields.io/gem/dt/enumerate_it.svg)](https://rubygems.org/gems/enumerate_it)
Expand Down Expand Up @@ -407,7 +407,7 @@ You sure can! 😄
* **Rails** `5.0+`

All versions are tested via
[Travis](https://github.com/lucascaton/enumerate_it/blob/main/.travis.yml).
[GitHub Actions](https://github.com/lucascaton/enumerate_it/blob/HEAD/.github/workflows/ci.yml).

#### Can I set a value to always be at the end of a sorted list?

Expand Down
4 changes: 2 additions & 2 deletions gemfiles/rails_5.2.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

source 'https://rubygems.org'

gem 'activerecord', '~> 5.2.5'
gem 'activesupport', '~> 5.2.5'
gem 'activerecord', '~> 5.2.6'
gem 'activesupport', '~> 5.2.6'
gem 'sqlite3', '~> 1.4.2'

gemspec path: '../'
4 changes: 2 additions & 2 deletions gemfiles/rails_6.0.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

source 'https://rubygems.org'

gem 'activerecord', '~> 6.0.3.6'
gem 'activesupport', '~> 6.0.3.6'
gem 'activerecord', '~> 6.0.4'
gem 'activesupport', '~> 6.0.4'
gem 'sqlite3', '~> 1.4.2'

gemspec path: '../'
4 changes: 2 additions & 2 deletions gemfiles/rails_6.1.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

source 'https://rubygems.org'

gem 'activerecord', '~> 6.1.3.1'
gem 'activesupport', '~> 6.1.3.1'
gem 'activerecord', '~> 6.1.4'
gem 'activesupport', '~> 6.1.4'
gem 'sqlite3', '~> 1.4.2'

gemspec path: '../'

0 comments on commit 96092a1

Please sign in to comment.