forked from ranguba/ranguba
-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (47 loc) · 1.21 KB
/
test.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
name: Test
on:
- push
- pull_request
jobs:
test:
name: ${{ matrix.ruby-version }}
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
ruby-version:
- "2.7"
- "3.0"
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4
with:
repository: "ranguba/groonga-client"
path: "groonga-client"
- name: Fix groonga-client path
run: |
mv groonga-client ../
- uses: actions/checkout@v4
with:
repository: "ranguba/groonga-client-model"
path: "groonga-client-model"
- name: Fix groonga-client-model path
run: |
mv groonga-client-model ../
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
- uses: actions/setup-node@v4
- name: Install Groonga
run: |
sudo apt install -y -V software-properties-common
sudo add-apt-repository -y ppa:groonga/ppa
sudo apt update
sudo apt install -y groonga-bin
- run: |
bundle install
- run: |
bin/rails webpacker:install
- name: Test
run: |
bin/rails test