-
Notifications
You must be signed in to change notification settings - Fork 758
90 lines (86 loc) · 2.62 KB
/
build.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
name: build
on: [push, pull_request]
jobs:
build:
strategy:
fail-fast: false
matrix:
include:
- ruby: 3.3
gemfile: gemfiles/activerecord72.gemfile
elasticsearch: 8
- ruby: 3.3
gemfile: Gemfile
elasticsearch: 8.13.4
- ruby: 3.3
gemfile: gemfiles/opensearch3.gemfile
opensearch: 2.14.0
- ruby: 3.2
gemfile: gemfiles/opensearch2.gemfile
opensearch: 2.0.0
- ruby: 3.1
gemfile: gemfiles/opensearch1.gemfile
opensearch: 1.3.16
- ruby: 3.2
gemfile: gemfiles/activerecord70.gemfile
elasticsearch: 8
- ruby: 3.1
gemfile: gemfiles/activerecord61.gemfile
elasticsearch: 7.17.21
- ruby: 3.3
gemfile: gemfiles/mongoid9.gemfile
elasticsearch: 8
mongodb: true
- ruby: 3.2
gemfile: gemfiles/mongoid8.gemfile
elasticsearch: 8.0.0
mongodb: true
- ruby: 3.1
gemfile: gemfiles/mongoid7.gemfile
elasticsearch: 7.0.0
mongodb: true
runs-on: ubuntu-latest
env:
BUNDLE_GEMFILE: ${{ matrix.gemfile }}
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- run: bundle update
- uses: actions/cache@v4
if: ${{ matrix.elasticsearch }}
with:
path: ~/elasticsearch
key: ${{ runner.os }}-elasticsearch-${{ matrix.elasticsearch }}
- uses: ankane/setup-elasticsearch@v1
if: ${{ matrix.elasticsearch }}
with:
elasticsearch-version: ${{ matrix.elasticsearch }}
plugins: |
analysis-kuromoji
analysis-smartcn
analysis-stempel
analysis-ukrainian
- uses: actions/cache@v4
if: ${{ matrix.opensearch }}
with:
path: ~/opensearch
key: ${{ runner.os }}-opensearch-${{ matrix.opensearch }}
- uses: ankane/setup-opensearch@v1
if: ${{ matrix.opensearch }}
with:
opensearch-version: ${{ matrix.opensearch }}
plugins: |
analysis-kuromoji
analysis-smartcn
analysis-stempel
analysis-ukrainian
- uses: ankane/setup-mongodb@v1
if: ${{ matrix.mongodb }}
- run: |
sudo apt-get update
sudo apt-get install redis-server
sudo systemctl start redis-server
- run: bundle exec rake test