Skip to content

Commit

Permalink
move CI from Travis to GH Actions (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
markets committed Oct 31, 2021
1 parent 9d2f63c commit aab87ea
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 25 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: CI

on: [push, pull_request]

jobs:
test:
name: CI
runs-on: ubuntu-latest
env:
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile
strategy:
fail-fast: false
matrix:
ruby: [2.5, 2.6, 2.7, 3.0, head]
gemfile: ["jekyll_v3", "jekyll_v4"]
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- run: bundle exec rspec
continue-on-error: ${{ endsWith(matrix.ruby, 'head') }}
16 changes: 0 additions & 16 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright 2013-2019 Marc Anguera Insa
Copyright 2013-2021 Marc Anguera Insa

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Jekyll-Timeago

[![Gem Version](https://img.shields.io/gem/v/jekyll-timeago.svg)](https://rubygems.org/gems/jekyll-timeago)
[![Build Status](https://travis-ci.com/markets/jekyll-timeago.svg?branch=master)](https://travis-ci.com/markets/jekyll-timeago)
[![Build Status](https://github.com/markets/jekyll-timeago/workflows/CI/badge.svg)](https://github.com/markets/jekyll-timeago/actions)
[![Maintainability](https://api.codeclimate.com/v1/badges/a8be458ba0532c2d057d/maintainability)](https://codeclimate.com/github/markets/jekyll-timeago/maintainability)

> A Ruby library to compute distance of dates in words, with localization support. Originally built for Jekyll.
Expand Down Expand Up @@ -230,7 +230,7 @@ Any kind of feedback, bug report, idea or enhancement are really appreciated.
To contribute, just fork the repo, hack on it and send a pull request. Don't forget to add specs for behaviour changes and run the test suite:

```
> bundle exec rake
> bundle exec rspec
```

## License
Expand Down
5 changes: 0 additions & 5 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,6 +1 @@
require "bundler/gem_tasks"
require 'rspec/core/rake_task'

RSpec::Core::RakeTask.new(:spec)

task :default => :spec
1 change: 0 additions & 1 deletion jekyll-timeago.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ Gem::Specification.new do |spec|

spec.add_development_dependency "jekyll", ">= 1.5"
spec.add_development_dependency "bundler"
spec.add_development_dependency "rake"
spec.add_development_dependency "rspec"
spec.add_development_dependency "appraisal"
end

0 comments on commit aab87ea

Please sign in to comment.