Skip to content

Commit

Permalink
Cache + restore the solr artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
cbeer committed Jul 3, 2024
1 parent f0a583b commit f61332c
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,22 @@ jobs:
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Cache Solr
id: cache-solr-restore
uses: actions/cache/restore@v4
with:
path: ~/.solr-artifacts
key: solr-9.6.1
- name: Write solr_wrapper config
run: |
mkdir -p ~/.solr-artifacts
echo "download_dir: ~/.solr-artifacts" > ~/.solr_wrapper.yml
- name: Run tests
run: bundle exec rake
- name: Save Solr
id: cache-solr-save
uses: actions/cache/save@v4
with:
path: |
~/.solr-artifacts
key: ${{ steps.cache-solr-restore.outputs.cache-primary-key }}

0 comments on commit f61332c

Please sign in to comment.