Skip to content

Commit

Permalink
chore: adding GitHub Actions CI builds
Browse files Browse the repository at this point in the history
This workflow file runs the RSpec testsuite on Ruby 3.1, 3.2, and 3.3.
  • Loading branch information
bhaak authored and gernotkogler committed Nov 11, 2024
1 parent f7f5cc8 commit 3b69716
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 1 deletion.
37 changes: 37 additions & 0 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby

name: Ruby

on:
push:
branches: [ "*" ]
pull_request:
branches: [ "master" ]

permissions:
contents: read

jobs:
test:

runs-on: ubuntu-latest
strategy:
matrix:
ruby-version: ['3.1', '3.2', '3.3']

steps:
- uses: actions/checkout@v4
- name: Set up Ruby
# To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
# change this to (see https://github.com/ruby/setup-ruby#versioning):
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Run tests
run: bundle exec rake spec
2 changes: 1 addition & 1 deletion xapian_db.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Gem::Specification.new do |s|
s.add_development_dependency "ruby-progressbar"
s.add_development_dependency "resque", ">= 1.19.0"
s.add_development_dependency "sidekiq", "~> 7.1"
s.add_development_dependency "xapian-ruby", "= 1.4.17"
s.add_development_dependency "xapian-ruby", "= 1.4.22"
s.add_development_dependency "pry-rails"
s.add_development_dependency "descendants_tracker"

Expand Down

0 comments on commit 3b69716

Please sign in to comment.