Skip to content

Commit 78e07ee

Browse files
committed
Create GitHub action: ruby.yml
1 parent 1fbdd18 commit 78e07ee

File tree

3 files changed

+35
-0
lines changed

3 files changed

+35
-0
lines changed

.github/workflows/ruby.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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: rake
9+
10+
on: [push, pull_request]
11+
12+
permissions:
13+
contents: read
14+
15+
jobs:
16+
test:
17+
strategy:
18+
fail-fast: false
19+
matrix:
20+
os: [ubuntu-latest, macos-latest]
21+
# Due to https://github.com/actions/runner/issues/849, we have to use quotes for '3.0'
22+
ruby: ['3.3']
23+
runs-on: ${{ matrix.os }}
24+
steps:
25+
- uses: actions/checkout@v4
26+
- uses: ruby/setup-ruby@v1
27+
with:
28+
ruby-version: ${{ matrix.ruby }}
29+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
30+
- name: Run rake
31+
run: bundle exec rake

Gemfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
source 'https://rubygems.org'
44

5+
gem 'rake'
6+
57
group :test do
68
gem 'rubocop', require: false
79
gem 'simplecov', require: false

Gemfile.lock

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ GEM
1414
prism (1.4.0)
1515
racc (1.8.1)
1616
rainbow (3.1.1)
17+
rake (13.2.1)
1718
regexp_parser (2.10.0)
1819
rubocop (1.77.0)
1920
json (~> 2.3)
@@ -50,6 +51,7 @@ PLATFORMS
5051
ruby
5152

5253
DEPENDENCIES
54+
rake
5355
rubocop
5456
simplecov
5557
simplecov-json

0 commit comments

Comments
 (0)