Skip to content

Commit

Permalink
reduce the number of parallel jobs and incorporate caching
Browse files Browse the repository at this point in the history
  • Loading branch information
sairamsrinivasan committed Jul 5, 2024
1 parent 3d877dd commit 42b7f36
Showing 1 changed file with 7 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 @@ -13,6 +13,7 @@ jobs:
runs-on: ubuntu-latest
continue-on-error: false
strategy:
max-parallel: 4
matrix:
ruby: ["2.6", "2.7", "3.0", "3.1"]
gemfile: ["monogid_3", "mongoid_4", "mongoid_5", "mongoid_6", "mongoid_7", "mongoid_8", "mongoid_9"]
Expand All @@ -32,6 +33,12 @@ jobs:
- { ruby: "3.1", gemfile: "mongoid_4" }
- { ruby: "3.1", gemfile: "mongoid_5" }
steps:
- 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.mongodb }}
uses: supercharge/[email protected]
with:
Expand Down

0 comments on commit 42b7f36

Please sign in to comment.