From 4c7226fa162efb0723250400fcb2e247208d7032 Mon Sep 17 00:00:00 2001 From: Ahmad Farhat Date: Sat, 17 Apr 2021 13:52:16 -0400 Subject: [PATCH] Fix CI gem cache (#2673) --- .github/workflows/main.yml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 542e7834..933eb725 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -36,11 +36,23 @@ jobs: - name: Checkout uses: actions/checkout@v2 - - name: Ruby Setup + Bundle Install + - name: Ruby Setup uses: ruby/setup-ruby@v1 with: ruby-version: ${{ env.RUBY_VERSION }} - bundler-cache: true + + - name: Bundle cache + uses: actions/cache@v2 + with: + path: vendor/bundle + key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }} + restore-keys: | + ${{ runner.os }}-gems- + + - name: Bundle install + run: | + bundle config path vendor/bundle + bundle install --jobs 4 --retry 3 - name: Setup database run: |