Skip to content

Commit 785dc84

Browse files
Add test workflow (#1)
* Add test workflow * Add rake to Gemfile
1 parent 43bc0e7 commit 785dc84

2 files changed

Lines changed: 28 additions & 0 deletions

File tree

.github/workflows/ruby.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Ruby
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
test:
14+
runs-on: ubuntu-latest
15+
strategy:
16+
matrix:
17+
ruby-version: ['3.2', '3.3', '3.4']
18+
19+
steps:
20+
- uses: actions/checkout@v4
21+
- name: Set up Ruby
22+
uses: ruby/setup-ruby@v1
23+
with:
24+
ruby-version: ${{ matrix.ruby-version }}
25+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
26+
- name: Run tests
27+
run: bundle exec rake

Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ gemspec
44

55
group :test do
66
gem 'minitest'
7+
gem 'rake'
78
end

0 commit comments

Comments
 (0)