Skip to content

Commit 074e343

Browse files
authored
Create ruby.yml
1 parent 1141fa1 commit 074e343

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/ruby.yml

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# This workflow uses actions that are not certified by GitHub.
2+
# They are provided by a third-party and are governed by
3+
# separate terms of service, privacy policy, and support
4+
# documentation.
5+
# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
6+
# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
7+
8+
name: Ruby
9+
10+
on:
11+
- push
12+
- pull_request
13+
14+
permissions:
15+
contents: read
16+
17+
jobs:
18+
test:
19+
20+
runs-on: ubuntu-latest
21+
strategy:
22+
matrix:
23+
ruby-version: ['2.7', '3.0', '3.1', '3.2', '3.3']
24+
25+
steps:
26+
- uses: actions/checkout@v4
27+
- name: Set up Ruby
28+
uses: ruby/setup-ruby@v1
29+
with:
30+
ruby-version: ${{ matrix.ruby-version }}
31+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
32+
- name: Run tests
33+
run: bundle exec rspec

0 commit comments

Comments
 (0)