Skip to content

Commit

Permalink
Add GitHub actions. (#110)
Browse files Browse the repository at this point in the history
- Set minimum required Ruby version to 2.5+.
  • Loading branch information
ioquatix authored May 19, 2024
1 parent 010f140 commit da59e48
Show file tree
Hide file tree
Showing 6 changed files with 66 additions and 50 deletions.
53 changes: 53 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Test

on: [push, pull_request]

permissions:
contents: read

env:
CONSOLE_OUTPUT: XTerm

jobs:
test:
name: ${{matrix.ruby}} on ${{matrix.os}}
runs-on: ${{matrix.os}}-latest
continue-on-error: ${{matrix.experimental}}

strategy:
matrix:
os:
- ubuntu

ruby:
- "2.5"
- "2.6"
- "2.7"
- "3.0"
- "3.1"
- "3.2"
- "3.3"

experimental: [false]

include:
- os: ubuntu
ruby: truffleruby
experimental: true
- os: ubuntu
ruby: jruby
experimental: true
- os: ubuntu
ruby: head
experimental: true

steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{matrix.ruby}}
bundler-cache: true

- name: Run tests
timeout-minutes: 10
run: bundle exec rspec
20 changes: 0 additions & 20 deletions .travis.yml

This file was deleted.

18 changes: 11 additions & 7 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,18 @@ source 'https://rubygems.org'
# Specify your gem's dependencies in utopia.gemspec
gemspec

group :development do
gem 'pry'
gem 'pry-coolline'

gem 'tty-prompt'
group :maintenance, optional: true do
gem "bake-gem"
gem "bake-modernize"
end

group :test do
gem 'simplecov'
gem 'coveralls', require: false
gem "rspec", "~> 3.6"

gem 'simplecov'
gem 'coveralls', require: false

gem "bundler"
gem "rake"
gem "concurrent-ruby"
end
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@ It uses the [FFI](http://wiki.github.com/ffi/ffi) gem to avoid having to compile

[API documentation is available on rdoc.info](http://rdoc.info/projects/nex3/rb-inotify).

[![Build Status](https://secure.travis-ci.org/guard/rb-inotify.svg)](http://travis-ci.org/guard/rb-inotify)
[![Code Climate](https://codeclimate.com/github/guard/rb-inotify.svg)](https://codeclimate.com/github/guard/rb-inotify)
[![Coverage Status](https://coveralls.io/repos/guard/rb-inotify/badge.svg)](https://coveralls.io/r/guard/rb-inotify)
[![Development Status](https://github.com/guard/rb-inotify/workflows/Test/badge.svg)](https://github.com/guard/rb-inotify/actions?workflow=Test)

## Usage

Expand Down
14 changes: 0 additions & 14 deletions Rakefile

This file was deleted.

7 changes: 1 addition & 6 deletions rb-inotify.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,7 @@ Gem::Specification.new do |spec|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
spec.require_paths = ["lib"]

spec.required_ruby_version = '>= 2.2'
spec.required_ruby_version = '>= 2.5'

spec.add_dependency "ffi", "~> 1.0"

spec.add_development_dependency "rspec", "~> 3.6"
spec.add_development_dependency "bundler"
spec.add_development_dependency "rake"
spec.add_development_dependency "concurrent-ruby"
end

0 comments on commit da59e48

Please sign in to comment.