Skip to content

Commit

Permalink
Use bundler-cache to cache ruby dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
fabianrbz committed Aug 5, 2024
1 parent 8cc3118 commit 7bb8c7f
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions .github/workflows/build-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,12 @@ jobs:
uses: ruby/setup-ruby@v1
with:
working-directory: ./docs.konghq.com
bundler-cache: true
ruby-version: .ruby-version
env:
BUNDLE_JOBS: 4
BUNDLE_RETRY: 3

- name: Ruby gem cache
uses: actions/cache@v4
with:
path: ${{ github.workspace }}/vendor/bundle
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gems-
- name: Bundle Setup
run: bundle config path ${{ github.workspace }}/vendor/bundle
- name: Bundle Install
run: bundle install --jobs 4 --retry 3 --gemfile=./docs.konghq.com/Gemfile
# Configure Node to build assets
- uses: actions/setup-node@v4
with:
Expand Down

0 comments on commit 7bb8c7f

Please sign in to comment.