Skip to content

Commit

Permalink
Add gem caching to test.yml (#20)
Browse files Browse the repository at this point in the history
* Add gem caching to test.yml

* add gem caching to CI
  • Loading branch information
sairamsrinivasan authored Jul 8, 2024
1 parent 50bcd09 commit f3b7eac
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
with:
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)

Expand Down

0 comments on commit f3b7eac

Please sign in to comment.