Skip to content

Commit

Permalink
GitHub action to run RSpec
Browse files Browse the repository at this point in the history
  • Loading branch information
bestie committed Oct 31, 2024
1 parent 0aa72d6 commit 758db58
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 1 deletion.
28 changes: 28 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: CI

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

permissions:
contents: read

jobs:
test:

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

steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
- name: Run tests
run: bundle exec rspec
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Fetchable

[![Gem Version](https://badge.fury.io/rb/fetchable.png)](http://badge.fury.io/rb/fetchable)
[![GitHub Actions CI](https://github.com/bestie/fetchable/actions/workflows/ci.yml/badge.svg)](https://github.com/bestie/fetchable/workflows/actions/ci.yml/badge.svg)

Provides a mixin and decorator to add a `Hash#fetch` like interface to any object.

Expand Down
2 changes: 1 addition & 1 deletion fetchable.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
spec.test_files = spec.files.grep(%r{^(spec)/})
spec.require_paths = ["lib"]

spec.add_development_dependency "bundler", "~> 2.4"
spec.add_development_dependency "bundler", "~> 2.0"
spec.add_development_dependency "rspec", "~> 3.13"
spec.add_development_dependency "pry", "~> 0.14"
end

0 comments on commit 758db58

Please sign in to comment.