-
Notifications
You must be signed in to change notification settings - Fork 10
40 lines (38 loc) · 936 Bytes
/
ruby.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
ruby: ['3.2', '3.3']
steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Write solr_wrapper config
run: |
mkdir -p ~/.solr_wrapper.yml
echo "download_dir: ~/.solr-artifacts" > ~/.solr_wrapper.yml
- name: Cache Solr
id: cache-solr-restore
uses: actions/cache/restore@v4
with:
path: ~/.solr-artifacts
key: solr-9.6.1
- 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 }}