Skip to content

Commit

Permalink
Add GitHub actions.
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix committed May 18, 2024
1 parent 010f140 commit 3da2b94
Show file tree
Hide file tree
Showing 5 changed files with 61 additions and 46 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
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
- macos

ruby:
- "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 bake test
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
14 changes: 0 additions & 14 deletions Rakefile

This file was deleted.

5 changes: 0 additions & 5 deletions rb-inotify.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,4 @@ Gem::Specification.new do |spec|
spec.required_ruby_version = '>= 2.2'

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 3da2b94

Please sign in to comment.