From aedd97e5c57aa9770748aa5014665c2a43a9af04 Mon Sep 17 00:00:00 2001 From: Chris <76159444+hunchr@users.noreply.github.com> Date: Wed, 6 Nov 2024 08:42:02 +0000 Subject: [PATCH] Use better caching strategy (#11) --- .github/workflows/ci.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7b14864..72af34b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,6 +5,8 @@ on: push jobs: test: runs-on: ubuntu-latest + env: + BUNDLE_PATH: vendor/bundle strategy: matrix: ruby: [3.0, 3.3] @@ -12,14 +14,21 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 + - name: Restore cache + uses: actions/cache@v4 + with: + key: gems + path: | + gemfiles + vendor/bundle + - name: Set up Ruby uses: ruby/setup-ruby@v1 with: - bundler-cache: true ruby-version: ${{ matrix.ruby }} - name: Install dependencies - run: bundle && cd spec/dummy && bundle && cd ../.. && bundle exec appraisal install + run: bundle && bundle exec appraisal install - name: Run tests run: bundle exec appraisal bin/check