Skip to content

Commit a985915

Browse files
committed
Create github ruby test action
1 parent fe0323a commit a985915

File tree

2 files changed

+31
-1
lines changed

2 files changed

+31
-1
lines changed

.github/workflows/ruby.yml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
2+
# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
3+
name: Ruby
4+
5+
on:
6+
push:
7+
branches: [ "main" ]
8+
pull_request:
9+
branches: [ "main" ]
10+
11+
permissions:
12+
contents: read
13+
14+
jobs:
15+
test:
16+
17+
runs-on: ubuntu-latest
18+
strategy:
19+
matrix:
20+
ruby-version: [ '3.1', '3.2', '3.3' ]
21+
22+
steps:
23+
- uses: actions/checkout@v4
24+
- name: Set up Ruby
25+
uses: ruby/setup-ruby@v1
26+
with:
27+
ruby-version: ${{ matrix.ruby-version }}
28+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
29+
- name: Run tests
30+
run: bundle exec rake

attributed-string.gemspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@ Gem::Specification.new do |spec|
1818
spec.metadata["homepage_uri"] = "https://github.com/instruct-rb/attributed-string"
1919

2020

21-
spec.required_ruby_version = ">= 3.2.3"
21+
spec.required_ruby_version = ">= 3.1"
2222
end

0 commit comments

Comments
 (0)