Skip to content

Commit 8e490c7

Browse files
committed
Use Bundler's BUNDLE_GEMFILE feature and setup-ruby's bundler-cache feature
1 parent 55bd51c commit 8e490c7

File tree

1 file changed

+4
-13
lines changed

1 file changed

+4
-13
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -56,25 +56,16 @@ jobs:
5656
allow-failure: true
5757
- ruby: head
5858
gemfile: Gemfile
59-
allow-failure: true
59+
60+
env:
61+
BUNDLE_GEMFILE: ${{ matrix.gemfile }}
6062

6163
steps:
6264
- uses: actions/checkout@v2
63-
- uses: actions/cache@v2
64-
with:
65-
path: /home/runner/bundle
66-
key: bundle-use-ruby-${{ matrix.ruby }}-${{ matrix.gemfile }}-gems-${{ hashFiles(matrix.gemfile) }}-${{ hashFiles('**/*.gemspec') }}
67-
restore-keys: |
68-
bundle-use-ruby-${{ matrix.ruby }}-${{ matrix.gemfile }}-gems-
6965
- name: Set up Ruby
7066
uses: ruby/setup-ruby@v1
7167
with:
7268
ruby-version: ${{ matrix.ruby }}
73-
- name: Bundle install
74-
run: |
75-
gem install bundler -v 2.1.4
76-
bundle config path /home/runner/bundle
77-
bundle config --global gemfile ${{ matrix.gemfile }}
78-
bundle install --jobs 4 --retry 3
69+
bundler-cache: true
7970
- name: Run tests
8071
run: bundle exec rake

0 commit comments

Comments
 (0)