From c240019c845b97becbd446f3ae64c9d5c205458f Mon Sep 17 00:00:00 2001 From: Tony Hsu Date: Tue, 12 Nov 2024 02:09:14 +0100 Subject: [PATCH] Restore cache --- .circleci/config.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 2e4d199d22..3ff15451f1 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -81,8 +81,13 @@ step_appraisal_install: &step_appraisal_install run: name: Install Appraisal gems command: | - bundle exec appraisal generate - bundle exec rake dependency:install + if [ "$CI_BUNDLE_CACHE_HIT" != 1 ]; then + bundle exec appraisal generate + bundle exec rake dependency:install + else + bundle exec appraisal generate + echo "All required gems were found in cache." + fi step_compute_bundle_checksum: &step_compute_bundle_checksum run: name: Compute bundle checksum