Skip to content

Commit

Permalink
replacing travis ci with github actions workflow
Browse files Browse the repository at this point in the history
It was a long run, but latest changes are forcing to find an alternative
  • Loading branch information
toy committed Jul 4, 2021
1 parent 79436e2 commit 62a92af
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 31 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: check
on:
push:
pull_request:
schedule:
- cron: 45 4 * * 4
jobs:
check:
runs-on: ubuntu-latest
strategy:
matrix:
ruby:
- '2.0'
- '2.1'
- '2.2'
- '2.3'
- '2.4'
- '2.5'
- '2.6'
- '2.7'
- '3.0'
- jruby-9.1
- jruby-9.2
fail-fast: false
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: "${{ matrix.ruby }}"
bundler-cache: true
- run: bundle exec rspec
rubocop:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: '3.0'
bundler-cache: true
- run: bundle exec rubocop
1 change: 1 addition & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
AllCops:
Exclude:
- '*.gemspec'
- 'vendor/bundle/**/*'
NewCops: enable

Layout/AccessModifierIndentation:
Expand Down
26 changes: 0 additions & 26 deletions .travis.yml

This file was deleted.

4 changes: 0 additions & 4 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,3 @@
source 'https://rubygems.org'

gemspec

if RUBY_VERSION >= '2.0'
gem 'travis_check_rubies', '~> 0.2'
end
2 changes: 1 addition & 1 deletion README.markdown
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[![Gem Version](https://img.shields.io/gem/v/progress.svg?style=flat)](https://rubygems.org/gems/progress)
[![Build Status](https://img.shields.io/travis/toy/progress/master.svg?style=flat)](https://travis-ci.org/toy/progress)
[![Build Status](https://github.com/toy/progress/actions/workflows/check.yml/badge.svg?branch=master)](https://github.com/toy/progress/actions/workflows/check.yml)
[![Code Climate](https://img.shields.io/codeclimate/maintainability/toy/progress.svg?style=flat)](https://codeclimate.com/github/toy/progress)
[![Depfu](https://badges.depfu.com/badges/528142fc3202e4bd89680832bfc713d7/overview.svg)](https://depfu.com/github/toy/progress)
[![Inch CI](https://inch-ci.org/github/toy/progress.svg?branch=master&style=flat)](https://inch-ci.org/github/toy/progress)
Expand Down

0 comments on commit 62a92af

Please sign in to comment.