From f3b7eac3b5cbb9eb31ddcfa8539c70c9e5f4ea22 Mon Sep 17 00:00:00 2001 From: Sai Srinivasan <37251147+sairamsrinivasan@users.noreply.github.com> Date: Sun, 7 Jul 2024 19:01:51 -0700 Subject: [PATCH] Add gem caching to test.yml (#20) * Add gem caching to test.yml * add gem caching to CI --- .github/workflows/test.yml | 7 +++++++ CHANGELOG.md | 1 + 2 files changed, 8 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 638a561..cf350a2 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -68,6 +68,13 @@ jobs: - { ruby: "3.1", gemfile: 'mongoid_8', mongodb: "7.0" } - { ruby: "3.1", gemfile: 'mongoid_9', mongodb: "7.0" } steps: + - name: Cache Gems + uses: actions/cache@v3 + with: + path: vendor/bundle + key: ${{ runner.os }}-gem-${{ hashFiles('**/Gemfile.lock') }} + restore-keys: | + ${{ runner.os }}-gem- - name: Set up MongoDB ${{ matrix.entry.mongodb }} uses: supercharge/mongodb-github-action@1.8.0 with: diff --git a/CHANGELOG.md b/CHANGELOG.md index 5853e64..f2b33a1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,6 @@ ### 1.1.0 (Next) * Your contribution here. +* [#20](https://github.com/mongoid/mongoid-compatibility/pull/20): Add gem caching to CI - [@saisrinivasan](https://github.com/SairamSrinivasan). ### 1.0.0 (2024/06/19)