Skip to content

Commit

Permalink
Use ruby/setup-ruby gem cache on GH actions
Browse files Browse the repository at this point in the history
  • Loading branch information
tvdeyen committed Feb 11, 2021
1 parent ecf9a11 commit 9782f44
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ jobs:
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Restore apt cache
id: apt-cache
uses: actions/cache@v2.1.3
Expand All @@ -73,18 +74,10 @@ jobs:
- name: Install bundler
run: |
gem install bundler
- name: Restore Ruby Gems cache
id: cache
uses: actions/cache@v2.1.3
with:
path: vendor/bundle
key: ${{ runner.os }}-bundle-${{ matrix.ruby }}-${{ matrix.rails }}-${{ matrix.database }}-${{ hashFiles('**/Gemfile') }}
restore-keys: |
${{ runner.os }}-bundle-
- name: Install bundle
timeout-minutes: 10
run: |
bundle install --jobs 4 --retry 3 --path vendor/bundle
bundle install --jobs 4 --retry 3
- name: Restore node modules cache
id: yarn-cache
uses: actions/cache@v2.1.3
Expand Down

0 comments on commit 9782f44

Please sign in to comment.