Skip to content

Commit f3b7eac

Browse files
Add gem caching to test.yml (#20)
* Add gem caching to test.yml * add gem caching to CI
1 parent 50bcd09 commit f3b7eac

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.github/workflows/test.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,13 @@ jobs:
6868
- { ruby: "3.1", gemfile: 'mongoid_8', mongodb: "7.0" }
6969
- { ruby: "3.1", gemfile: 'mongoid_9', mongodb: "7.0" }
7070
steps:
71+
- name: Cache Gems
72+
uses: actions/cache@v3
73+
with:
74+
path: vendor/bundle
75+
key: ${{ runner.os }}-gem-${{ hashFiles('**/Gemfile.lock') }}
76+
restore-keys: |
77+
${{ runner.os }}-gem-
7178
- name: Set up MongoDB ${{ matrix.entry.mongodb }}
7279
uses: supercharge/mongodb-github-action@1.8.0
7380
with:

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
### 1.1.0 (Next)
22
* Your contribution here.
3+
* [#20](https://github.com/mongoid/mongoid-compatibility/pull/20): Add gem caching to CI - [@saisrinivasan](https://github.com/SairamSrinivasan).
34

45
### 1.0.0 (2024/06/19)
56

0 commit comments

Comments
 (0)