From 9480e2894cc2620c4a8b875cee1fcf93ab4501eb Mon Sep 17 00:00:00 2001 From: Shadab Ahmed Date: Fri, 25 Dec 2020 22:39:11 -0800 Subject: [PATCH] Add github workflow actions for CI and remove travis --- .github/workflows/tests.yml | 30 ++++++++++++++++++++++++++++++ .travis.yml | 14 -------------- Gemfile | 2 +- README.md | 2 +- 4 files changed, 32 insertions(+), 16 deletions(-) create mode 100644 .github/workflows/tests.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..b7b816b --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,30 @@ +name: Tests + +on: [push, pull_request] + +jobs: + test: + runs-on: ubuntu-latest + + strategy: + matrix: + include: + - ruby-version: 2.6.6 + bundler-version: 1.17.3 + rails-version: 4.2.11.3 + + steps: + - uses: actions/checkout@v2 + - name: Set up Ruby ${{ matrix.ruby-version }} + uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{ matrix.ruby-version }} + bundler: ${{ matrix.bundler-version }} + - name: Install dependencies + run: bundle install + env: + RAILS_VERSION: ${{ matrix.rails-version }} + - name: Run tests + run: bundle exec rspec + env: + RAILS_VERSION: ${{ matrix.rails-version }} diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index e68ff1b..0000000 --- a/.travis.yml +++ /dev/null @@ -1,14 +0,0 @@ -language: ruby -sudo: false -cache: bundler -bundler_args: --without guard -script: "bundle exec rspec" -rvm: - - 2.0.0-p648 - - 2.1.10 - - 2.2.5 - - 2.3.1 -env: - - "RAILS_VERSION=4.2" - - "RAILS_VERSION=4.1" - - "RAILS_VERSION=4.0" diff --git a/Gemfile b/Gemfile index ebf0a3e..5b287d9 100644 --- a/Gemfile +++ b/Gemfile @@ -8,7 +8,7 @@ group :test do gem 'rb-fsevent', '~> 0.9' gem 'rcov', :platforms => :mri_18 gem 'redis', :require => false - gem 'simplecov', :platforms => [:mri_19, :mri_20, :mri_21, :mri_22, :mri_23], :require => false + gem 'simplecov', :require => false end group :guard do diff --git a/README.md b/README.md index 5977991..13e37ee 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Logstasher [![Gem Version](https://badge.fury.io/rb/logstasher.svg)](https://badge.fury.io/rb/logstasher) [![Build Status](https://travis-ci.org/shadabahmed/logstasher.svg?branch=master)](https://secure.travis-ci.org/shadabahmed/logstasher) +# Logstasher [![Gem Version](https://badge.fury.io/rb/logstasher.svg)](https://badge.fury.io/rb/logstasher) ![Tests](https://github.com/shadabahmed/logstasher/workflows/Tests/badge.svg) ### Awesome Logging for Rails !! This gem is heavily inspired from [lograge](https://github.com/roidrage/lograge), but it's focused on one thing and one thing only. That's making your logs awesome like this: