Skip to content

Commit

Permalink
Fixed bundler installing at ruby 2.7
Browse files Browse the repository at this point in the history
details

```
Installing Bundler
  Using latest Bundler for ruby-2.7.8 because the default Bundler gem is too old for that Ruby version
  Ruby 2.6-2.7 only works with Bundler 2.4
  /opt/hostedtoolcache/Ruby/2.7.8/x64/bin/gem install bundler -v ~> 2.4.0
  ERROR:  While executing gem ... (Zlib::BufError)
      buffer error
  Took   0.78 seconds
```

c.f. https://github.com/itamae-kitchen/itamae/actions/runs/7343647181/job/19997130475

Perhaps this is following issue
https://bugs.ruby-lang.org/issues/18058

Therefore, `RUBYOPT` was set only at testing to avoid this issue
  • Loading branch information
sue445 committed Dec 28, 2023
1 parent 0ec658f commit a600277
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions .github/workflows/test_main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ on:
SLACK_WEBHOOK:
required: true

env:
RUBYOPT: ${{ inputs.rubyopt }}

jobs:
unit:
runs-on: ubuntu-latest
Expand All @@ -33,6 +30,8 @@ jobs:
- run: bundle update

- run: bundle exec rake spec:unit
env:
RUBYOPT: ${{ inputs.rubyopt }}

- name: Slack Notification (not success)
uses: lazy-actions/slatify@master
Expand Down Expand Up @@ -70,14 +69,23 @@ jobs:
- run: bundle update

- run: bundle exec rake spec:integration:docker:boot
env:
RUBYOPT: ${{ inputs.rubyopt }}

- run: bundle exec rake spec:integration:docker:provision
env:
RUBYOPT: ${{ inputs.rubyopt }}

# FIXME: avoid error for "Command `chmod 777 /tmp/itamae_tmp` failed. (exit status: 1)"
ITAMAE_TMP_DIR: /var/tmp/itamae_tmp

- run: bundle exec rake spec:integration:docker:serverspec
env:
RUBYOPT: ${{ inputs.rubyopt }}

- run: bundle exec rake spec:integration:docker:clean_docker_container
env:
RUBYOPT: ${{ inputs.rubyopt }}

- name: Slack Notification (not success)
uses: lazy-actions/slatify@master
Expand Down Expand Up @@ -108,7 +116,12 @@ jobs:
- run: bundle update

- run: bundle exec rake spec:integration:local:main
env:
RUBYOPT: ${{ inputs.rubyopt }}

- run: bundle exec rake spec:integration:local:ordinary_user
env:
RUBYOPT: ${{ inputs.rubyopt }}

- name: Slack Notification (not success)
uses: lazy-actions/slatify@master
Expand Down

0 comments on commit a600277

Please sign in to comment.