Skip to content

Commit 9480e28

Browse files
committed
Add github workflow actions for CI and remove travis
1 parent 08b6db9 commit 9480e28

File tree

4 files changed

+32
-16
lines changed

4 files changed

+32
-16
lines changed

.github/workflows/tests.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Tests
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
test:
7+
runs-on: ubuntu-latest
8+
9+
strategy:
10+
matrix:
11+
include:
12+
- ruby-version: 2.6.6
13+
bundler-version: 1.17.3
14+
rails-version: 4.2.11.3
15+
16+
steps:
17+
- uses: actions/checkout@v2
18+
- name: Set up Ruby ${{ matrix.ruby-version }}
19+
uses: ruby/setup-ruby@v1
20+
with:
21+
ruby-version: ${{ matrix.ruby-version }}
22+
bundler: ${{ matrix.bundler-version }}
23+
- name: Install dependencies
24+
run: bundle install
25+
env:
26+
RAILS_VERSION: ${{ matrix.rails-version }}
27+
- name: Run tests
28+
run: bundle exec rspec
29+
env:
30+
RAILS_VERSION: ${{ matrix.rails-version }}

.travis.yml

Lines changed: 0 additions & 14 deletions
This file was deleted.

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ group :test do
88
gem 'rb-fsevent', '~> 0.9'
99
gem 'rcov', :platforms => :mri_18
1010
gem 'redis', :require => false
11-
gem 'simplecov', :platforms => [:mri_19, :mri_20, :mri_21, :mri_22, :mri_23], :require => false
11+
gem 'simplecov', :require => false
1212
end
1313

1414
group :guard do

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# 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)
1+
# 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)
22
### Awesome Logging for Rails !!
33

44
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:

0 commit comments

Comments
 (0)