Skip to content

Commit

Permalink
CI: use bundler-cache (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
olleolleolle authored Dec 11, 2021
1 parent 85ca541 commit 0484ac4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ jobs:
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- name: Install dependencies
run: |
gem install bundler --no-document
bundle install
bundler-cache: true
# Avoid issues on these platforms
- if: ${{ matrix.ruby == '2.5' || matrix.ruby == '2.6' }}
run: gem update --system
- name: Run test
run: rake compile test
run: bundle exec rake compile test
5 changes: 5 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,8 @@ source 'https://rubygems.org'

# Specify your gem's dependencies in etc.gemspec
gemspec

# Ensure a new-enough version of fileutils is used in tests,
# to avoid a gem activation issue, which affected Ruby 2.6, 2.5.
# https://github.com/ruby/etc/pull/14#issuecomment-989742427
gem 'fileutils', '>= 1.2.0'

0 comments on commit 0484ac4

Please sign in to comment.