Skip to content

Commit

Permalink
Merge pull request #166 from hiroyuki-sato/topic/gix-github-actions
Browse files Browse the repository at this point in the history
Fix GitHub Actions
  • Loading branch information
hiroyuki-sato authored Jul 19, 2024
2 parents 61fc3db + 1bad5d8 commit 2df3150
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 20 deletions.
29 changes: 10 additions & 19 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ jobs:
strategy:
matrix:
jruby_version:
- 9.3.10.0
- 9.4.2.0
- 9.3.15.0
- 9.4.8.0
fail-fast: false
steps:
- uses: actions/checkout@v4
Expand All @@ -19,24 +19,15 @@ jobs:
with:
java-version: 8
distribution: "temurin"
- uses: ruby/setup-ruby@v1
with:
ruby-version: 'jruby-${{ matrix.jruby_version }}'
bundler-cache: true
- name: show ruby version
run: ruby -v
- name: bundle install
run: bundle install
- name: download jruby
run: "curl -L -o jruby.jar https://repo1.maven.org/maven2/org/jruby/jruby-complete/${{ matrix.jruby_version }}/jruby-complete-${{ matrix.jruby_version }}.jar"
#
# This step avoids the following error in the JRuby 9.4 test.
# For avoiding permission denied. install gems into `gems` directory
#
# Gem::LoadError: You have already activated rake 13.0.6,
# but your Gemfile requires rake 13.1.0. Prepending
# `bundle exec` to your command may solve this.
#
- name: install rake 13.1.0
run: gem install rake -v 13.1.0
- name: bundle install
run: "env GEM_HOME=gems java -jar jruby.jar -S bundle install"

- name: install embulk.jar
run: "curl -L -o embulk.jar https://github.com/embulk/embulk/releases/download/v0.10.49/embulk-0.10.49.jar"
run: "curl -L -o embulk.jar https://github.com/embulk/embulk/releases/download/v0.11.4/embulk-0.11.4.jar"
- name: rake test
run: bundle exec env RUBYOPT="-r ./embulk.jar" rake test
run: 'env GEM_HOME=gems RUBYOPT="-r ./embulk.jar -r rubygems" java -jar jruby.jar -S bundle exec rake test'
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
source 'https://rubygems.org/'

gemspec
gem 'embulk', '= 0.10.49'
gem 'embulk', '= 0.11.4'
gem 'embulk-parser-none'
gem 'embulk-parser-jsonl'
gem 'pry-nav'
Expand Down

0 comments on commit 2df3150

Please sign in to comment.