Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions .github/workflows/test-ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ on:
paths:
- '.github/workflows/test-ruby.yml'
- 'ruby/lib/**'
- 'ruby/spec/**'
- 'ruby/Gemfile'
- 'ruby/Gemfile.lock'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand All @@ -17,8 +19,11 @@ permissions:
jobs:
build:
runs-on: ubuntu-latest
name: Build
name: Build (Ruby ${{ matrix.ruby-version }})
timeout-minutes: 5
strategy:
matrix:
ruby-version: ['3.2', '3.3', '3.4', '4.0']
defaults:
run:
working-directory: ruby
Expand All @@ -28,9 +33,9 @@ jobs:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
persist-credentials: false
- uses: ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1
- uses: ruby/setup-ruby@95ef2b042f9d7a56d8268cba8559e2842e2ad01b # v1
with:
ruby-version: '3.3'
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
working-directory: ruby
- run: find lib -name '*.rb' -exec ruby -c {} +
Expand Down
2 changes: 2 additions & 0 deletions ruby/Gemfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
source "https://rubygems.org"

gem "bigdecimal", "~> 4.1"

group :test do
gem "rspec", "~> 3.13"
end
4 changes: 3 additions & 1 deletion ruby/Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
GEM
remote: https://rubygems.org/
specs:
bigdecimal (4.1.2)
diff-lcs (1.6.2)
rspec (3.13.2)
rspec-core (~> 3.13.0)
Expand All @@ -20,7 +21,8 @@ PLATFORMS
ruby

DEPENDENCIES
bigdecimal (~> 4.1)
rspec (~> 3.13)

BUNDLED WITH
2.5.6
2.7.2
5 changes: 3 additions & 2 deletions ruby/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## 開発

- Ruby 3.0+
- Ruby 3.2+ (or Ruby 4.0+)

```shell
# 準備
Expand All @@ -11,7 +11,8 @@ git add .
git commit -m init

# setup
bundle install --path vendor/bundle
bundle config set --local path vendor/bundle
bundle install

# test
bundle exec rspec
Expand Down